2016-09-12 7 views
0

einen Fehler von pip Immer wenn scrapy auf OS X El Capitan Installationpip ssl Zertifikat Fehler OSX Installation 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) 

Haben Sie versucht & Homebrew Scrubbed Verzeichnisse als auch pip, Python neu zu installieren, aber nichts funktioniert

Versucht unabhängig installieren Kryptografie, Installation über Brüh - keine Würfel

Antwort

0

Die gesamte Umgebung wurde gebrochen.

Ich löschte die folgenden Ordner aus ~/usr/lib/

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

Dann folgende

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

Alle funktioniert jetzt!