2016-09-12 55 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 

现在所有的作品!