sudo apt install python3-venv
source venv/bin/activate
sudo apt-get install python3-pip
virtualenv djangoProject
virtualenv -p /usr/bin/python3.6 djangoProject
source djangoProject/bin/activate
python3.8 -m venv my_env
Copied!
# to activate run below command from your project-virtualenv directory
source my-project-env/bin/activate
# to deactivate run below command
deactivate
source my_env/bin/activate
Copy code
source my-project-env/bin/activate