sudo pip install ipython --upgrade # 升级
版本兼容性问题,升级到最新版本的ipython 后,会报错
from pickleshare import PickleShareDB
File "/usr/local/lib/python2.7/dist-packages/pickleshare.py", line 40, in <module>
from path import Path
ImportError: No module named path
解决方法,使用低版本的path.py
~$ sudo pip install -I path.py==7.7.1
Downloading/unpacking path.py==7.7.1
搞定!