请告诉我一些在virtualenv中的ubuntu中安装Django的方法,而不使用pip for python 2.7
我正在使用代理连接。我已经尝试了其他答案中显示的用于导出 pip 代理的步骤。
当我尝试 pip install Django==1.6.2
它显示错误
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
另外,我无法使用 pip 安装任何东西。
最佳答案
如果你使用 pip 1.5.4,你应该阅读这个主题:pip connection failure: cannot fetch index base URL http://pypi.python.org/simple/ .所以,你应该在你的 virtualenv 中升级 pip:pip install --upgrade pip
(见 https://pip.pypa.io/en/stable/installing/#upgrading-pip)。
关于python - 如何在 virtualenv python 2.7 中安装 Django,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35342188/