nev*_*int 6 python ipython anaconda
我目前正在使用IPython版本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", "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]:
Run Code Online (Sandbox Code Playgroud)
如何将其降级到版本3(少于4)?
通过使用1和.conda removeconda install
conda remove将删除当前版本ipython:
conda remove ipython
Run Code Online (Sandbox Code Playgroud)
然后,您可以选择搜索ipython要安装的版本conda search 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
Run Code Online (Sandbox Code Playgroud)
使用星号条目表示您拥有的当前版本.
然后,使用conda install ipython=version_num安装所需的版本.请注意每个版本所需的默认Python版本ipython!
1正如我最近注意到的那样,这个conda remove步骤已经过时了.您可以简单地列出python版本,conda search然后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
Run Code Online (Sandbox Code Playgroud)
你很高兴去.
尝试类似的方法:
sudo /opt/anaconda/bin/pip install -I ipython==3.2.2
Run Code Online (Sandbox Code Playgroud)
-I表示忽略已安装的版本=>重新安装。
| 归档时间: |
|
| 查看次数: |
6004 次 |
| 最近记录: |