Asif Mehmood
Asif Mehmood

Reputation: 984

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

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

Upvotes: 10

Views: 38485

Answers (7)

ARK
ARK

Reputation: 171

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

Upvotes: 8

user149341
user149341

Reputation:

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

Upvotes: 18

Susaj S N
Susaj S N

Reputation: 1077

sudo apt-get update
sudo apt-get install virtualenv

Upvotes: 3

Asif Mehmood
Asif Mehmood

Reputation: 984

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/

Upvotes: -1

Rashid Obaidi
Rashid Obaidi

Reputation: 174

Try This :

sudo apt-get install software-properties-common
sudo apt-add-repository universe
sudo apt-get update
sudo apt-get install virtualenv

Upvotes: 15

Mahfuz
Mahfuz

Reputation: 1345

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

sudo apt-get install python-virtualenv

Upvotes: 4

Maryam Homayouni
Maryam Homayouni

Reputation: 943

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

Upvotes: 2

Related Questions