Issue when trying to install ipython through terminal
<p>I want to install <code>ipython</code> through the macOS terminal (I have tried both <code>easy_install</code> and <code>pip</code>), but a specific problem always occurs, which is described in the last line:</p>

<pre><code>Searching for ipython
Reading https://pypi.python.org/simple/ipython/
Best match: ipython 5.1.0
Downloading https://pypi.python.org/packages/d4/0b/70c913ed4c99eb84c589e5e25b28985ba93ca2a57e08959bb14372f7f5f8/ipython-5.1.0.zip#md5=9d6a0bd4d4c18a4dc88d2f69dfefdea7
Processing ipython-5.1.0.zip
Writing /tmp/easy_install-f_u6YT/ipython-5.1.0/setup.cfg
Running ipython-5.1.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-f_u6YT/ipython-5.1.0/egg-dist-tmp-3mwkoQ
checking package data
check version number
creating /Library/Python/2.7/site-packages/ipython-5.1.0-py2.7.egg
Extracting ipython-5.1.0-py2.7.egg to /Library/Python/2.7/site-packages
Adding ipython 5.1.0 to easy-install.pth file
Installing ipython script to /usr/local/bin
Installing iptest2 script to /usr/local/bin
Installing iptest script to /usr/local/bin
Installing ipython2 script to /usr/local/bin

Installed /Library/Python/2.7/site-packages/ipython-5.1.0-py2.7.egg
Processing dependencies for ipython
error: six 1.4.1 is installed but six&gt;=1.9.0 is required by set(['prompt-toolkit'])
</code></pre>

<p>What can i do to resolve it?</p>

<p><strong>EDIT:</strong> I tried  <code>sudo pip install --upgrade six</code>, but a permission error occurred.</p>

<pre><code>OSError: [Errno 1] Operation not permitted: '/tmp/pip-GgNJ79-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/six-1.4.1-py2.7.egg-info'
</code></pre>

<p>Well, assuming that <code>sudo easy_install ipython</code> is used to install <code>ipython</code>, this is what worked for me, in order to get the latest version of <code>six</code>.</p>

<p><code>sudo pip install --ignore-installed six</code>, which is described more analytically <a href="http://stackoverflow.com/questions/31900008/oserror-errno-1-operation-not-permitted-when-installing-scrapy-in-osx-10-11">here</a>.</p>

python osx terminal ipython