安装 jupyter和python
本文使用Anaconda安装jupyter。
Anaconda可以看做Python的一个集成安装,安装它后就默认安装了python、IPython、集成开发环境Spyder和众多的包和模块
也可参照https://docs.anaconda.com/anaconda/install/linux进行安装
下载 Anaconda
Anaconda的官网下载地址https://www.anaconda.com/download/,可以根据自己的需要自行下载,本文使用的操作系统为ubuntu,因此下载的是Anaconda installer for Linux.
wget https://repo.continuum.io/archive/Anaconda3-5.0.1-Linux-x86_64.sh
使用MD5或SHA-256验证数据完整性。
md5sum Anaconda3-5.0.1-Linux-x86_64.sh #后跟下载文件的实际路径和文件名
或者
sha256sum Anaconda3-5.0.1-Linux-x86_64.sh
安装Anaconda
bash Anaconda3-5.0.1-Linux-x86_64.sh
接受许可协议
选择安装路径,直接回车表示选择默认路径
在/root/.bashrc中将Anaconda 1安装位置预先安装到PATH中
使安装生效
source ~/.bashrc
到此Anaconda安装结束。
启动jupyter notebook
Anaconda自带安装了jupyter,因此安装完Anaconda后,在命令行输入如下命令即可启动jupyter notebook
jupyter notebook