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

34.5k Views Asked by At

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

7

There are 7 best solutions below

0
Rashid Obaidi On BEST ANSWER

Try This :

sudo apt-get install software-properties-common
sudo apt-add-repository universe
sudo apt-get update
sudo apt-get install virtualenv
1
Asif Mehmood On

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/

1
AudioBubble On

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

1
Maryam Homayouni On

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
1
Mahfuz On

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

sudo apt-get install python-virtualenv
1
ARK On

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

0
Susaj S N On
sudo apt-get update
sudo apt-get install virtualenv