【问题标题】:Issue when trying to install ipython through terminal尝试通过终端安装 ipython 时出现问题
【发布时间】:2017-01-11 22:29:14
【问题描述】:

我想通过macOS终端安装ipythoneasy_installpip我都试过了),但是总是出现一个具体的问题,在最后一行有描述:

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'

【问题讨论】:

  • 正如堆栈跟踪所说,您需要 "six>=1.9.0"
  • 在安装 ipython 之前尝试 pip install Six==1.9.0。

标签: python macos terminal ipython


【解决方案1】:

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

sudo pip install --ignore-installed six,对here进行了更多的解析描述。

【讨论】:

    猜你喜欢
    • 2022-09-24
    • 1970-01-01
    • 1970-01-01
    • 2021-04-10
    • 1970-01-01
    • 1970-01-01
    • 2020-05-09
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多