- Python 3.8+ (Check with
python3 --version
orpython --version
) - pip (Check with
pip --version
) - venv (Python's built-in virtual environment tool)
If any of these are missing, install them:
-
Install Python, pip, and venv:
cd stocksApp sudo apt update sudo apt install python3 python3-pip python3-venv
cd stocksApp
# Create the virtual environment
python -m venv venv
# Activate the virtual environment
source venv/bin/activate
Once the virtual environment is activated, install the required dependencies using the requirements.txt
file:
pip install -r requirements.txt
python stocksApp/manage.py runserver