xxxxxxxxxx
python3.8 -m venv my_env
Copied!
xxxxxxxxxx
python3 -m venv name_environment #this creates the virtual environment
source name_environment/bin/activate #this activates the virtual environment
#to install packages first activate the environment then do pip install ...
xxxxxxxxxx
sudo apt-get install python3-pip
virtualenv djangoProject
virtualenv -p /usr/bin/python3.6 djangoProject
source djangoProject/bin/activate
xxxxxxxxxx
# to activate run below command from your project-virtualenv directory
source my-project-env/bin/activate
# to deactivate run below command
deactivate