This should setup python environment on Ubuntu 20 (Ubuntu 20.04.6 LTS)
Instructions: https://pip.pypa.io/en/stable/installation/#get-pip-py
- Download
get-pip.py
file:wget https://bootstrap.pypa.io/get-pip.py
- Install distutils:
apt-get install python3-distutils
- Install pip:
python3 get-pip.py # path to downloaded file
- Create project folder
mkdir your-project cd your-project
- Install venv module:
apt install python3.8-venv
- Create virtual environment:
python3 -m venv ./venv
- Activate virtual environment
source ./venv/bin/activate
pip install flask