How To Install Virtualenv On Ubuntu 20.04 GCP Instance?
I am trying to install python3 virtualenv. I get the following message when I try to run virtualenv. virtualenv Command 'virtualenv' not found, but can be installed with: apt insta
Solution 1:
AFAIU the latest versions of Ubuntu removed Python2 altogether so Python3 is now just the Python. Try:
apt-get update
apt-get install python3-virtualenv
Solution 2:
try type in terminal:
sudo apt-get install python3.8-venv
and then try again install virtualenv
Solution 3:
The below is very similar to the answer by phd, but my freshly installed Ubuntu 20.04 still requires the python version number:
apt-get update
apt-get install python3-virtualenv
Solution 4:
This will definitely work:
sudo apt-get update
sudo apt-get install python3-virtualenv
Solution 5:
I was getting the error E: Unable to locate package python3-virtualenv
because I had to run apt-get update
first. This was my brand new GCP instance.
Reference: first comment of the first answer in this thread. Unable to locate package virtualenv in ubuntu-13 on a virtual-machine
Thank you all.
Post a Comment for "How To Install Virtualenv On Ubuntu 20.04 GCP Instance?"