-
Install Python (version >= 3.8):
If you don't have Python installed on your system, you can download it from Python.org.
- If you're using macOS, Python should be preinstalled.
You can verify by running the command:python3 --version
in Terminal. If it returns a Python version (preferably >= 3.8), it means it's already installed. - For Windows, download Python and make sure to add it to PATH during installation.
- On Linux, many systems already have Python installed by default. You can check for Python's presence by typing python3 --version in the terminal.
Make sure to add Python to PATH during installation on Windows. This will allow you to run Python from any directory.
If
python3is not recognized as a command, try usingpythonorpyinstead ofpython3.- To open the terminal, you need to follow appropriate instructions for your operating system:
- On macOS:
- Open the "Applications" folder and find the "Utilities" folder.
- Inside the "Utilities" folder, find and click on the "Terminal" application.
- On Windows:
- You can open the command prompt by pressing the Windows key on your keyboard, typing "cmd", and hitting Enter.
- On Linux:
- You can open the terminal using one of the following shortcuts:
- Press Ctrl + Alt + T.
- Search for "Terminal" in your desktop's application menu and open it from there.
- If you're using macOS, Python should be preinstalled.
-
Install PIP in Python:
PIP is a package manager for Python that simplifies the installation and management of Python modules.
Usually, PIP is installed along with Python.- You can check for the presence of PIP by running the command
pip --version
in Terminal or Command Prompt. - If PIP is not installed, you can install it by following one of the methods listed here: Pip installation.
- You can check for the presence of PIP by running the command
-
Install required PIP modules:
After installing Python and PIP, install the required modules by running the following command:
pip install -r requirements.txt
If pip is not recognized as a command, try using
pip3instead ofpip.
Prerequisites