[英]Installing packages using pip give SSL error
我最近開始學習Python,我是Python的新手,但不是編程。 我有四台機器,我可以無縫地安裝Django和Python。 在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
我試着在網上搜索,我找到的最接近的是
無法為`python 3.3`安裝`pip`,但對`python 2.7`工作正常
這並沒有真正解決問題。
提前致謝
根據OP的評論 :
將pip降級到版本1.2解決了這個問題。 實現這一目標的最簡單方法是:
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.