how to install virtualenv on Ubuntu 20 04 GCP instance

0 votes

I am trying to install python3 virtualenv. I often get the below-mentioned message whenever I try to run virtualenv.

virtualenv
Command 'virtualenv' not found, but can be installed with:
apt install python3-virtualenv

but if I run install command, I get the following error.

apt install python3-virtualenv
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package python3-virtualenv

For python3 -m venv, I get message to install using apt-get install python3-venv but when I try it, I get the same message.

sudo apt-get install python3-venv
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package python3-venv is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'python3-venv' has no installation candidate

I am running this as root. wget also works.

Nov 8, 2022 in GCP by Ashwini
• 5,430 points
909 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.

Related Questions In GCP

0 votes
1 answer

How to install GPU driver for a ubuntu 18.04 instance?

After you create an instance with one ...READ MORE

answered Nov 7, 2019 in GCP by Sirajul
• 59,230 points
2,061 views
0 votes
1 answer

How to add a PTR record to my VM instance on gcp?

If your VM instance uses the primary ...READ MORE

answered Sep 26, 2019 in GCP by Sirajul
• 59,230 points
1,885 views
0 votes
1 answer

How to add a regional persistent disk to a VM instance on GCP?

You must first create the regional persistent ...READ MORE

answered Oct 18, 2019 in GCP by Sirajul
• 59,230 points
2,745 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

How do I transfer files to a windows instance on GCP?

You could probably use Windows RDP client for ...READ MORE

answered Nov 8, 2019 in GCP by Sirajul
• 59,230 points
2,862 views
0 votes
2 answers
+1 vote
2 answers

how can i count the items in a list?

Syntax :            list. count(value) Code: colors = ['red', 'green', ...READ MORE

answered Jul 7, 2019 in Python by Neha
• 330 points

edited Jul 8, 2019 by Kalgi 4,464 views
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP