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