sudo apt install python3-pip --fix-missing
pip3 install virtualenv
nano ~/.profile
and add the location to path, copy paste this kind of line in the end of the file:PATH="$PATH:/home/mikal/.local/bin"
or wherever it is located. After installation, virtualenv lets you know the location.- Now you can create virtual environment using
virtualenv venv
- Activate your environment using
source venv/bin/activate
and you will see (venv) appearing in front of your command prompt.
Created
June 3, 2021 09:59
-
-
Save Mulperi/b2e4dba9334f8f2e3a008c42cb5977cf to your computer and use it in GitHub Desktop.
Python virtualenv installation on Ubuntu
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment