非 Anaconda 安装
不必安装 IPython,直接安装 Jupyter
Ubuntu 16.04 默认 Python 为 2.7
卸载 IPython
sudo pip uninstall -y ipython
,提示 ERROR: Cannot uninstall 'ipython'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
进入 /usr/lib/python2.7/dist-packages/
,删除名称包含 ipython 的文件和文件夹。
pip 换源
gedit ~/.pip/pip.conf
(如果没有 .pip
文件夹就新建一个)
[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
安装 Jupyter
sudo -H python -m pip install jupyter #更新pip
sudo easy_install pip #上面的命令不能成功pip则执行这条命令
sudo -H python -m pip install jupyter