activate virtualenv ubuntu code example

Example 1: 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

Example 2: ubuntu activate venv

source venv/bin/activate

Example 3: how to activate virtual environment using ubuntu

# to activate run below command from your project-virtualenv directory
source my-project-env/bin/activate
# to deactivate run below command
deactivate

Example 4: how to activate virtual environment using ubuntu

source my-project-env/bin/activate