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
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
Try This :
sudo apt-get install software-properties-common
sudo apt-add-repository universe
sudo apt-get update
sudo apt-get install virtualenv
The Ubuntu package is called python-virtualenv
, not "virtualenv".
sudo apt-get install python-virtualenv
you see an error Package python-virtualenv is not available
than call sudo apt-get update
firstly –
Leeuwarden Try This :
sudo apt-get install software-properties-common
sudo apt-add-repository universe
sudo apt-get update
sudo apt-get install virtualenv
It's also possible that you may not have run sudo apt-get update
. It worked for me.
You need to add python before virtualenv because ubuntu package is python-virtualenv not virtualenv.
sudo apt-get install python-virtualenv
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
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/
© 2022 - 2024 — McMap. All rights reserved.
pip
, if you haven'tpip
install withsudo apt-get install python-pip
then dosudo pip install virtualenv
– Sofia