2016-09-12 70 views
0

在OS X埃爾卡皮坦安裝scrapy時充分利用PIP錯誤PIP SSL證書錯誤OSX上安裝scrapy

~ pip install scrapy 
Requirement already satisfied (use --upgrade to upgrade): scrapy in /usr/local/lib/python2.7/site-packages 
Requirement already satisfied (use --upgrade to upgrade): six>=1.5.2 in /usr/local/lib/python2.7/site-packages (from scrapy) 
Requirement already satisfied (use --upgrade to upgrade): pyOpenSSL in /usr/local/lib/python2.7/site-packages (from scrapy) 
Requirement already satisfied (use --upgrade to upgrade): cssselect>=0.9 in /usr/local/lib/python2.7/site-packages (from scrapy) 
Requirement already satisfied (use --upgrade to upgrade): queuelib in /usr/local/lib/python2.7/site-packages (from scrapy) 
Requirement already satisfied (use --upgrade to upgrade): parsel>=0.9.3 in /usr/local/lib/python2.7/site-packages (from scrapy) 
Requirement already satisfied (use --upgrade to upgrade): PyDispatcher>=2.0.5 in /usr/local/lib/python2.7/site-packages (from scrapy) 

Collecting cffi>=1.4.1 (from cryptography>=1.3->pyOpenSSL->scrapy) 
    Could not fetch URL https://pypi.python.org/simple/cffi/: There was a problem confirming the ssl certificate: [Errno 2] No such file or directory - skipping 
    Could not find a version that satisfies the requirement cffi>=1.4.1 (from cryptography>=1.3->pyOpenSSL->scrapy) (from versions:) 
No matching distribution found for cffi>=1.4.1 (from cryptography>=1.3->pyOpenSSL->scrapy) 

曾試圖重新安裝點子,蟒蛇&自制 。洗滌目錄爲好,但沒有工作

嘗試獨立安裝加密,通過brew安裝 - 沒有骰子

回答

0

整個環境被打破。

我刪除下列文件夾了〜/ usr/lib目錄的/

  • python2.7
  • python3.4
  • python3.5

然後做了以下

brew uninstall python 
brew update 
brew upgrade 
brew doctor 
brew cleanup 
brew install python 
pip install scrapy 

現在所有的作品!