ubuntu16.04安装jupyter问题(后续)
1、error1
ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/home/lvyan/.local/lib/python3.5'
Check the permissions.
安装jupyter出错,解决办法:
sudo python3 -m pip install --upgrade pip
sudo python3 -m pip install jupyter
2、error2
ERROR: jsonschema 3.0.1 has requirement six>=1.11.0, but you'll have six 1.10.0 which is incompatible.
卸载了它们,解决办法:
sudo pip uninstall jupyter
sudo pip uninstall jupyter notebook
运行pip3 install --upgrade --force-reinstall --no-cache-dir jupyter
3、error3
ERROR: Cannot uninstall 'ptyprocess'. 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.
在计算机路径下找到ptyprocess.egg-info
,它是有版本的,所以去计算机搜索ptyprocess
,找到以egg-info
结尾的文件,删除文件。
再运行:
pip3 install --upgrade --force-reinstall --no-cache-dir jupyter
4、error4
ERROR: Cannot uninstall 'pexpect'. 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.
同error3,删除pexpect.egg-info
文件。
凡是类似上述错误,均删除egg-info
文件。
再运行:
pip3 install --upgrade --force-reinstall --no-cache-dir jupyter
5、error5
输入jupyter notebook
输出[C 19:04:35.386 NotebookApp] Running as root is not recommended. Use --allow-root to bypass.
上述命令表示没有权限。
解决办法:
jupyter notebook --generate-config --allow-root
得到jupyter_notebook_config.py
的路径
打开配置文件gedit /它的路径/jupyter_notebook_config.py
找到#c.NotebookApp.allow_root = False
去掉#
,改为Truec.NotebookApp.allow_root =True
保存,直接运行jupyter notebook