Unable to install modules using 'pip' or 'easy_install' on Mac
<p>Default Python installation is 2.7.x on Mac. (currently running El Capitan)</p>

<p>I've changed default to 3.4.5.(mandatory for my course)</p>

<p>I was instructed by my professor to use MacPorts and it requires an SSL to download libraries so we are using following code to bypass it:</p>

<pre><code>#from https://dnaeon.github.io/disable-python-ssl-verification/
import nltk
import ssl

try:
    _create_unverified_https_context = ssl._create_unverified_context
except AttributeError:
    # Legacy Python that doesn't verify HTTPS certificates by default
    pass
else:
    # Handle target environment that doesn't support HTTPS verification
    ssl._create_default_https_context = _create_unverified_https_context

#download all nltk data
nltk.download('all')
</code></pre>

<p>Everything installed using MacPorts works just fine, but most of the libraries are not available on MacPorts, so when I try to use pip3, it simply downloads the library but it never works. For exmaple:</p>

<p>In Terminal,
<a href="https://i.stack.imgur.com/DfRKJ.png" rel="nofollow"><img src="https://i.stack.imgur.com/DfRKJ.png" alt="enter image description here"></a></p>

<p>In Python Shell,
<a href="https://i.stack.imgur.com/3f9ga.png" rel="nofollow"><img src="https://i.stack.imgur.com/3f9ga.png" alt="enter image description here"></a></p>

<p>If I use 'pip' instead of 'pip3', it installs libraries for python 2.7.x.
I've tried the same process with tweepy and twython, but it doesn't work after installation. How to solve this issue?</p>

<p>Try executing the following command:</p>

<pre><code>$ sudo python3 -m pip install textblob
</code></pre>

<p>Best way would be to clone the repo:[EDIT]</p>

<pre><code>$ git clone https://github.com/sloria/TextBlob.git
$ cd TextBlob/
$ python setup.py install
</code></pre>

<p>For more details see <a href="http://textblob.readthedocs.io/en/dev/install.html" rel="nofollow">this</a></p>

python osx python-3.x pip