Reputation: 984
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
Reputation: 171
It's also possible that you may not have run sudo apt-get update
. It worked for me.
Upvotes: 8
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
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
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
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