i have to install virtualenv on ubuntu 12.04 but it shows following error
sudo pip install virtualenv
[sudo] password for raushan:
Downloading/unpacking virtualenv
Cannot fetch index base URL http://pypi.python.org/simple/
Could not find any downloads that satisfy the requirement virtualenv
No distributions at all found for virtualenv
Storing complete log in /home/raushan/.pip/pip.log
Cannot fetch index base URL http://pypi.python.org/simple/
It sounds like you're unable to access PyPi.
Try navigating to http://pypi.python.org/simple/ in your browser to see if you're able to connect. Do you use a proxy to access websites?
It may also be useful to check if you're able to access PyPi from the command line. Try:
wget http://pypi.python.org/simple/
If you're using a proxy, enable that on the command line:
export HTTP_PROXY="http://your.proxy.address.com:8000"
export HTTPS_PROXY=$HTTP_PROXY
replacing your proxy address and the port with whichever details you have.
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句