简体   繁体   中英

How to install Django in virtualenv python 2.7

please tell me some way to install Django in ubuntu in virtualenv without using pip for python 2.7 I am using a proxy connection. I have tried the steps shown in other answers for exporting proxy for pip .

when I try pip install Django==1.6.2 it shows error

Downloading/unpacking Django
  Cannot fetch index base URL https://pypi.python.org/simple/
  Could not find any downloads that satisfy the requirement Django
Cleaning up...
No distributions at all found for Django
Storing debug log for failure in /home/shivam/.pip/pip.log

Also , I am unable to install anything using pip.

If your using pip 1.5.4, you should read this topic : pip connection failure: cannot fetch index base URL http://pypi.python.org/simple/ . So, you should upgrade pip in your virtualenv: pip install --upgrade pip (see https://pip.pypa.io/en/stable/installing/#upgrading-pip ).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM