2012-07-11 89 views
4

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

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

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

我得到了以下错误:

Searching for ipython[zmq,qtconsole,notebook,test] 
Best match: ipython 0.12.1 
Adding ipython 0.12.1 to easy-install.pth file 

Using /Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages 
Processing dependencies for ipython[zmq,qtconsole,notebook,test] 
Traceback (most recent call last): 
    File "/Library/Frameworks/Python.framework/Versions/Current/bin/easy_install", line 10, in 
    sys.exit(main()) 
    File "/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1915, in main 
    with_ei_usage(lambda: 
    File "/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1896, in with_ei_usage 
    return f() 
    File "/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1919, in 
    distclass=DistributionWithoutHelpCommands, **kw 
    File "/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/distutils/core.py", line 152, in setup 
    dist.run_commands() 
    File "/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/distutils/dist.py", line 953, in run_commands 
    self.run_command(cmd) 
    File "/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/distutils/dist.py", line 972, in run_command 
    cmd_obj.run() 
    File "/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 350, in run 
    self.easy_install(spec, not self.no_deps) 
    File "/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 587, in easy_install 
    self.process_distribution(spec, dist, deps, "Using") 
    File "/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 674, in process_distribution 
    [requirement], self.local_index, self.easy_install 
    File "/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/pkg_resources.py", line 593, in resolve 
    requirements.extend(dist.requires(req.extras)[::-1]) 
    File "/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/pkg_resources.py", line 2219, in requires 
    "%s has no such extra feature %r" % (self, ext) 
pkg_resources.UnknownExtra: ipython 0.12.1 has no such extra feature 'zmq' 

它看起来它不搜索0.13。它仍然在寻找0.12。

如何升级到0.13?

回答

11

这个工作对我的雪豹环保署7.3:

sudo easy_install -U ipython 
6

为Ubuntu用户,请按照此步骤。

pip install ipython --upgrade