[英]Installing packages using pip give SSL error
I recently started learning Python, am new to Python but not to programming. 我最近开始学习Python,我是Python的新手,但不是编程。 I have four machines on which I was able to install the Django and Python seamlessly.
我有四台机器,我可以无缝地安装Django和Python。 On the fifth machine that is a Mac Book Pro OS 10.6.8 I am able to install Django (or for that matter any other package) for Python2.6 but get the following error if I try it for Python 3.4.1
在MacBook Pro OS 10.6.8的第五台机器上,我可以为Python2.6安装Django(或者其他任何其他软件包),但如果我在Python 3.4.1中尝试它,会出现以下错误
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 /Users/himmy/.pip/pip.log
I tried searching the web and the closest I found was 我试着在网上搜索,我找到的最接近的是
Can't Install `pip` for `python 3.3` but worked fine for `python 2.7` 无法为`python 3.3`安装`pip`,但对`python 2.7`工作正常
which doesn't really solve the problem. 这并没有真正解决问题。
Thanks in Advance 提前致谢
Per a comment by the OP : 根据OP的评论 :
Downgrading pip to version 1.2 solves the problem.
将pip降级到版本1.2解决了这个问题。 The easiest way to achieve this is:
实现这一目标的最简单方法是:
curl -O pypi.python.org/packages/source/p/pip/pip-1.2.1.tar.gz tar xvfz pip-1.2.1.tar.gz cd pip-1.2.1 python setup.py install
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.