Unable to locate package virtualenv in ubuntu-13 on a virtual-machine
Asked Answered
S

7

10

When i try to run the command:

sudo apt-get install virtualenv

The error I get in response is:

E: Unable to locate package virtualenv

Sombrero answered 31/1, 2015 at 21:47 Comment(7)
You need to install it with pip , if you haven't pip install with sudo apt-get install python-pip then do sudo pip install virtualenvSofia
have a look to this question askubuntu.com/questions/378558/…Sofia
Now it is giving the same error for the first command you told. @KasraADSombrero
if you are sure that you have execute the command correctly the problem is for your package manager ! so go to current link to correct it !Sofia
thanx very much. I will try and then come hereSombrero
I am confused. One after every dependant gives an error of unable to locate for each proceeding file to be installed. What to do now, please. Thanx in advance. @KasraADSombrero
Yess, if any one wants to have a look at ( installing virtualenv: a basis for the installation of ) django installation, please run this command when the shell opens up in Ubuntu: sudo apt-get install python-setuptools and then: sudo apt-get install python-easy_install virtualenv and then run the commands to simply start the instructions followed on the following link(starting from the section "Setting up a new environment"): django-rest-framework.org/tutorial/1-serializationSombrero
S
15

Try This :

sudo apt-get install software-properties-common
sudo apt-add-repository universe
sudo apt-get update
sudo apt-get install virtualenv
Stricken answered 15/9, 2018 at 1:57 Comment(0)
D
18

The Ubuntu package is called python-virtualenv, not "virtualenv".

Dodecahedron answered 1/2, 2015 at 0:46 Comment(1)
if calling sudo apt-get install python-virtualenv you see an error Package python-virtualenv is not available than call sudo apt-get update firstlyLeeuwarden
S
15

Try This :

sudo apt-get install software-properties-common
sudo apt-add-repository universe
sudo apt-get update
sudo apt-get install virtualenv
Stricken answered 15/9, 2018 at 1:57 Comment(0)
R
8

It's also possible that you may not have run sudo apt-get update. It worked for me.

Recriminate answered 13/11, 2017 at 11:51 Comment(1)
That turned out to be the issue for me as well.Banbury
M
4

You need to add python before virtualenv because ubuntu package is python-virtualenv not virtualenv.

sudo apt-get install python-virtualenv
Mantellone answered 1/11, 2016 at 13:38 Comment(1)
Package 'python-virtualenv' has no installation candidateLoper
E
2

you can install it with this instruction :

curl -O https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.10.1.tar.gz
tar xvfz virtualenv-1.10.1.tar.gz
cd virtualenv-1.10.1
sudo python setup.py install
Explant answered 18/8, 2015 at 8:38 Comment(1)
Thanks very much. It was really helpfulSombrero
J
2
sudo apt-get update
sudo apt-get install virtualenv
Jammie answered 18/7, 2019 at 9:46 Comment(0)
S
-1

Yess, if any one wants to have a look at ( installing virtualenv: a basis for the installation of ) django installation, please run this command when the shell opens up in Ubuntu:

sudo apt-get install python-setuptools
sudo apt-get install python-easy_install virtualenv

and then run the commands to simply start the instructions followed on the following link(starting from the section "Setting up a new environment"): http://www.django-rest-framework.org/tutorial/1-serialization/

Sombrero answered 1/2, 2015 at 0:5 Comment(1)
Unable to locate package python-easy_installLoper

© 2022 - 2024 — McMap. All rights reserved.