pip ssl certificate error OSX installing scrapy
<p>Getting an error from pip when installing scrapy on OS X El Capitan</p>

<pre><code>    ~ 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&gt;=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&gt;=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&gt;=0.9.3 in /usr/local/lib/python2.7/site-packages (from scrapy)
Requirement already satisfied (use --upgrade to upgrade): PyDispatcher&gt;=2.0.5 in /usr/local/lib/python2.7/site-packages (from scrapy)

Collecting cffi&gt;=1.4.1 (from cryptography&gt;=1.3-&gt;pyOpenSSL-&gt;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&gt;=1.4.1 (from cryptography&gt;=1.3-&gt;pyOpenSSL-&gt;scrapy) (from versions: )
No matching distribution found for cffi&gt;=1.4.1 (from cryptography&gt;=1.3-&gt;pyOpenSSL-&gt;scrapy)
</code></pre>

<p>Have tried to reinstall pip, python &amp; homebrew
Scrubbed directories as well, but nothing working</p>

<p>Tried independently install cryptography, installing via brew â no dice</p>

<p>The entire environment was broken.</p>

<p>I deleted the following folders out of ~/usr/lib/</p>

<ul>
<li>python2.7</li>
<li>python3.4</li>
<li>python3.5</li>
</ul>

<p>Then did the following</p>

<pre><code>brew uninstall python
brew update
brew upgrade
brew doctor
brew cleanup
brew install python
pip install scrapy
</code></pre>

<p>All works now!</p>

python osx ssl https pip