2016-11-21 73 views
0

好,我目前想在我的MacOS安裝Scrapy但一切的問題,我在終端推出的第一件事就是:在Mac OS X錯誤SSL PIP安裝Scrapy

pip install scrapy

,並返回我:

You are using pip version 7.0.1, however version 9.0.1 is available. 
You should consider upgrading via the 'pip install --upgrade pip' command. 
Requirement already satisfied (use --upgrade to upgrade): scrapy in /usr/local/lib/python2.7/site-packages/Scrapy-1.2.1-py2.7.egg 
Collecting Twisted>=10.0.0 (from scrapy) 
    Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'ConnectTimeoutError(, 'Connection to pypi.python.org timed out. (connect timeout=15)')': /simple/twisted/ 
    Could not find a version that satisfies the requirement Twisted>=10.0.0 (from scrapy) (from versions:) 
No matching distribution found for Twisted>=10.0.0 (from scrapy)

看到更新,使考慮,我意識到這一點......

pip install --upgrade pip

,並返回我下面的:

You are using pip version 7.0.1, however version 9.0.1 is available. 
You should consider upgrading via the 'pip install --upgrade pip' command. 
Requirement already up-to-date: pip in /usr/local/lib/python2.7/site-packages/pip-7.0.1-py2.7.egg

事實是,昨天我是做了一千個測試,給了我另一種類型的錯誤:

"SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed"

但最後這個錯誤不再顯示我。

+0

你可以嘗試安裝到[virtualenv](https://virtualenv.pypa.io/en/stable/)嗎? – eLRuLL

+0

@elRuLL nop如果我這樣做,它會給我一個錯誤:[SSL:CERTIFICATE_VERIFY_FAILED]如果我嘗試安裝虛擬 –

回答

0

暫時(僅適用於此模塊),您可以手動安裝它。從任何地方下載它,如果它是壓縮文件,則解壓縮然後使用python setup.py install

+0

如果我這樣做,它會給我一個錯誤:閱讀https://pypi.python.org/simple/service_identity/ https://pypi.python.org/simple/service_identity/上的下載錯誤:[SSL:CERTIFICATE_VERIFY_FAILED]證書驗證失敗(_ssl.c:590) - 可能找不到某些軟件包! 和更多類似的錯誤。 –