create venv ubuntu 20.04
sudo apt-get install python3-venv
python3 -m venv .venv
create venv ubuntu 20.04
sudo apt-get install python3-venv
python3 -m venv .venv
how to create a virtual environment in python ubuntu
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 ...
python virtualenv ubuntu
$ pip install virtualenv
$ pip install virtualenvwrapper
// Append ~/.bashrc
export VIRTUALENVWRAPPER_PYTHON=/usr/bin/python3
export WORKON_HOME=$HOME/.virtualenvs
export VIRTUALENVWRAPPER_VIRTUALENV=/$HOME/.local/bin/virtualenv
source ~/.local/bin/virtualenvwrapper.sh
how to activate virtual environment using ubuntu
sudo apt-get install python3-pip
virtualenv djangoProject
virtualenv -p /usr/bin/python3.6 djangoProject
source djangoProject/bin/activate
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us