5

我在 Mac lion OS 上使用 Enthought 包的最新免费版本。ipython 自带的包是0.12。如何将其升级到 0.13?

当我按照说明运行以下命令时

sudo easy_install ipython[zmq,qtconsole,notebook,test]

我收到以下错误:

搜索 ipython[zmq,qtconsole,notebook,test]
最佳匹配:ipython 0.12.1
将 ipython 0.12.1 添加到 easy-install.pth 文件

使用 /Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages
处理 ipython[zmq,qtconsole,notebook,test] 的依赖项
回溯(最近一次通话最后):
  文件“/Library/Frameworks/Python.framework/Versions/Current/bin/easy_install”,第 10 行,在
    sys.exit(main())
  文件“/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/setuptools/command/easy_install.py”,第 1915 行,在 main
    with_ei_usage(lambda:
  文件“/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/setuptools/command/easy_install.py”,第 1896 行,在 with_ei_usage
    返回 f()
  文件“/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/setuptools/command/easy_install.py”,第 1919 行,在
    distclass=DistributionWithoutHelpCommands, **kw
  文件“/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/distutils/core.py”,第 152 行,在设置中
    dist.run_commands()
  文件“/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/distutils/dist.py”,第 953 行,在 run_commands
    self.run_command(cmd)
  文件“/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/distutils/dist.py”,第 972 行,在 run_command
    cmd_obj.run()
  运行中的文件“/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/setuptools/command/easy_install.py”,第 350 行
    self.easy_install(规范,不是 self.no_deps)
  文件“/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/setuptools/command/easy_install.py”,第 587 行,在 easy_install
    self.process_distribution(spec, dist, deps, "使用")
  文件“/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/setuptools/command/easy_install.py”,第 674 行,在 process_distribution
    [要求]、self.local_index、self.easy_install
  解析中的文件“/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/pkg_resources.py”,第 593 行
    requirements.extend(dist.requires(req.extras)[::-1])
  文件“/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/pkg_resources.py”,第 2219 行,需要
    "%s 没有这样的额外功能 %r" % (self, ext)
pkg_resources.UnknownExtra:ipython 0.12.1 没有这样的额外功能“zmq”

看起来它没有搜索 0.13。它仍在寻找 0.12。

如何升级到 0.13?

4

2 回答 2

11

这在 EPD 7.3 的 Snow Leopard 上对我有用:

sudo easy_install -U ipython
于 2012-10-02T14:59:01.197 回答
8

对于 ubuntu 用户,请按照此步骤操作。

pip install ipython --upgrade
于 2014-04-22T13:25:26.797 回答