Ubuntu16.04 Jupyter安装(Ipython Notebook安装)
Jupyter Notebook是一个Web应用程序,允许您创建和共享包含实时代码,方程,可视化和说明文本的文档。
简单的介绍就是:Jupyter Notebook是Ipython的升级版,而Ipython可以说是一个加强版的交互式 Shell,也就是说,它比在terminal里运行python会更方便,界面更友好
环境:
Ubuntu16.04 64位
1. 安装pip
(1)更新和升级包
- sudo apt-get update
- sudo apt-get upgrade
(2)安装pip
- sudo apt-get install python-pip
2. 安装Jupyter
(1)升级pip
- sudo pip install --upgrade pip
(2)安装Jupyter
- sudo pip install jupyter
安装到一半,突然报错,
File "/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/response.py", line 246, in _error_catcher
raise ReadTimeoutError(self._pool, None, 'Read timed out.')
ReadTimeoutError: HTTPSConnectionPool(host='pypi.python.org', port=443): Read timed out.
查看一下端口,发现pycharm占用,关闭,
重新输入 pip install jupyter
3.运行Jupyter
- jupyter notebook
会直接在浏览器打开jupyter notebook
这里插入一点,千万不能在root权限下运行,,不然会出现
[C 16:20:11.182 NotebookApp] Running as root is not recommended. Use --allow-root to bypass.