0
我使用easy_install为python 2.6.1安装了ipython。在意识到我需要使用matplotlib的2.7版本后,我下载并安装了使用sudo使用python 2.7的ipython的资源。我需要卸载“旧”ipython吗?如果是的话,我该怎么做?ipython for python 2.6.1需要卸载吗?
我使用easy_install为python 2.6.1安装了ipython。在意识到我需要使用matplotlib的2.7版本后,我下载并安装了使用sudo使用python 2.7的ipython的资源。我需要卸载“旧”ipython吗?如果是的话,我该怎么做?ipython for python 2.6.1需要卸载吗?
没有你不应该有,IPython的包数据被存储在你安装了它的Python版本的站点包目录,IPython中的可执行文件基本上包含
#!/usr/bin/python
# -*- coding: utf-8 -*-
"""
long comment about IPython.Shell that you
might want to read; omitted here for brevity
"""
import IPython.Shell
IPython.Shell.start().mainloop()
它将运行使用默认的python版本,你可以直接调用2.7版本:/path/to/python2.7 /path/to/ipython
如果你的默认版本的python是2.6