您好, 欢迎来到 !    登录 | 注册 | | 设为首页 | 收藏本站

如何使用Anaconda将IPython4降级为3

5b51 2022/1/14 8:23:22 python 字数 3232 阅读 587 来源 www.jb51.cc/python

我目前正在使用I Python版本4. $ipython WARNING: 'inline' not available as pylab backend, using 'auto' instead. Python 2.7.10 |Anaconda 2.1.0 (x86_64)| (default, Oct 19 2015, 18:31:17) Type "copyright", "credit

概述

$ipython
WARNING: 'inline' not available as pylab backend,using 'auto' instead.
Python 2.7.10 |Anaconda 2.1.0 (x86_64)| (default,Oct 19 2015,18:31:17) 
Type "copyright","credits" or "license" for more information.

IPython 4.0.0 -- An enhanced Interactive Python.
?         -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help      -> Python's own help system.
object?   -> Details about 'object',use 'object??' for extra details.
Using matplotlib backend: MacOSX

In [1]:

如何将其降级到版本3(少于4)?

conda remove将删除当前版本的ipython:

conda remove ipython

然后,您可以选择搜索要使用conda search ipython安装的ipython版本:

ipython                      0.13                     py27_0  defaults        
                             0.13                     py26_0  defaults        
                             0.13                     py33_1  defaults        
                             0.13                     py27_1  defaults        
                             0.13                     py26_1  defaults        
                             0.13.1                   py33_1  defaults 
... continues..
                             3.2.0                    py27_0  defaults        
                             3.2.1                    py34_0  defaults        
                             3.2.1                    py33_0  defaults        
                             3.2.1                    py27_0  defaults        
                             4.0.0                    py35_0  defaults        
                             4.0.0                    py34_0  defaults        
                          *  4.0.0                    py27_0  defaults

使用星号条目表示您拥有的当前版本.

然后,使用conda install ipython = version_num来安装所需的版本.请注意每个ipython版本所需的认Python版本!

1正如我最近注意到的那样,conda删除步骤已经过时了.您只需使用conda search列出python版本,然后使用您想要的版本执行conda install,anaconda将为您处理替换:

(myenv)jim@unx: conda install ipython=3.2.0
Fetching package Metadata: ....
Solving package specifications: ................

The following packages will be DOWNGRADED:

    ipython: 4.0.1-py27_0 --> 3.2.0-py27_0

Proceed ([y]/n)? y

你很高兴去.

总结

以上是编程之家为你收集整理的如何使用Anaconda将IPython4降级为3全部内容,希望文章能够帮你解决如何使用Anaconda将IPython4降级为3所遇到的程序开发问题。


如果您也喜欢它,动动您的小指点个赞吧

除非注明,文章均由 laddyq.com 整理发布,欢迎转载。

转载请注明:
链接:http://laddyq.com
来源:laddyq.com
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。


联系我
置顶