尝试通过终端安装ipython时出现问题

时间:2016-09-04 09:40:34

标签: python macos terminal ipython

我想通过macOS终端安装ipython(我已经尝试了easy_installpip),但总是会出现一个特定的问题,最后一行对此进行了描述: / p>

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>=1.9.0 is required by set(['prompt-toolkit'])

我该怎么做才能解决它?

编辑:我尝试了sudo pip install --upgrade six,但发生了权限错误。

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'

1 个答案:

答案 0 :(得分:1)

好吧,假设sudo easy_install ipython用于安装ipython,这对我有用,以获得最新版本的six

sudo pip install --ignore-installed six,更具分析性地描述here