1
0
Fork 0
mirror of synced 2024-06-21 11:40:21 +12:00
bulk-downloader-for-reddit/docs/COMPILE_FROM_SOURCE.md

41 lines
1.8 KiB
Markdown
Raw Normal View History

# Compiling from source code
## Requirements
### Python 3 Interpreter
2018-07-26 18:22:14 +12:00
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 when installing the software is mandatory.
\* *Use Python 3.6.5 if you encounter an issue*
## Using terminal
### To open it...
2018-07-26 18:24:50 +12:00
- **On Windows**: Press **Shift+Right Click**, select **Open Powershell window here** or **Open Command Prompt window here**
2018-07-26 18:24:50 +12:00
- **On Linux**: Right-click in a folder and select **Open Terminal** or press **Ctrl+Alt+T**.
2018-07-12 22:35:45 +12:00
- **On MacOS**: Look for an app called **Terminal**.
### Navigating to the directory where script is downloaded
2018-07-13 23:39:01 +12:00
Go inside the folder where script.py is located. If you are not familiar 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)
2018-07-12 23:27:16 +12:00
## Finding the correct keyword for Python
2018-07-12 21:31:32 +12:00
Enter these lines to terminal window until it prints out the version you have downloaded and installed:
2018-07-12 23:27:16 +12:00
- `python --version`
- `python3 --version`
- `python3.7 --version`
- `python3.6 --version`
- `py --version`
- `py -3 --version`
- `py -3.6 --version`
- `py -3.7 --version`
2018-07-12 23:27:16 +12:00
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
```
---
2018-07-26 18:22:03 +12:00
Now, you can go to [Using command-line arguments](COMMAND_LINE_ARGUMENTS.md)