From 32ffd3b8619248cccd694741032e62e1054d0659 Mon Sep 17 00:00:00 2001 From: Ali Parlakci Date: Thu, 12 Jul 2018 14:27:16 +0300 Subject: [PATCH] Added dependency installation --- docs/COMPILE_FROM_SOURCE.md | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/docs/COMPILE_FROM_SOURCE.md b/docs/COMPILE_FROM_SOURCE.md index 57a6ada..2056ea9 100644 --- a/docs/COMPILE_FROM_SOURCE.md +++ b/docs/COMPILE_FROM_SOURCE.md @@ -1,7 +1,7 @@ # Compiling from source code ## Requirements ### Python 3 Interpreter -Latest* version of **Python 3** is needed. See if it is already installed [here](#finding-the-correct-prefix-for-python). If not, download the matching release for your platform [here](https://www.python.org/downloads/) and install it. If you are a *Windows* user, selecting **Add Python 3 to PATH** option is mandatory. +Latest* version of **Python 3** is needed. See if it is already installed [here](#finding-the-correct-keyword-for-python). If not, download the matching release for your platform [here](https://www.python.org/downloads/) and install it. If you are a *Windows* user, selecting **Add Python 3 to PATH** option is mandatory. \* *Use Python 3.6.5 if you encounter an issue* ## Using terminal @@ -17,8 +17,9 @@ Latest* version of **Python 3** is needed. See if it is already installed [here] ### Navigating to the directory where script is downloaded Go inside the folder where script.py is located. If you are not familier with changing directories on command-prompt and terminal read *Changing Directories* in [this article](https://lifehacker.com/5633909/who-needs-a-mouse-learn-to-use-the-command-line-for-almost-anything) -## Finding the correct prefix for Python +## Finding the correct keyword for Python Enter these lines to terminal window until it prints out the version you have downloaded and installed: + - `python --version` - `python3 --version` - `python3.7 --version` @@ -28,4 +29,14 @@ Enter these lines to terminal window until it prints out the version you have do - `py -3.6 --version` - `py -3.7 --version` -Once you find it, use it at [Using command-line arguments](COMMAND_LINE_ARGUMENTS.md) \ No newline at end of file +Once it does, your keyword is without the `--version` part. + +## Installing dependencies +Enter the line below to terminal window when you are in the directory where script.py is, use your keyword for Python: +```console +python -m pip install -r requirements.txt +``` + +--- + +Now, you can go to [Using command-line arguments](COMMAND_LINE_ARGUMENTS.md) \ No newline at end of file