云友“kindasusenn”在
安装
jupyter
notebook
时遇到了
问题
,所以在这里也想实践一下。
环境 :Debian 8
过程:
1. Debian 8 默认的 python 版本是2.7,按 jupyter notebook 的安装 建议 ,先安装 python3.6:
2. 新建一个普通用户,如liujia,登录后将python3.6加到bash配置文件中:
3. 下载 Anaconda3,安装:
4. 安装好后,将 Anaconda3 路径加到 bash 配置 文件中:
5. 运行 jupyter notebook
6. 默认 jupyter notebook 使用 8888 端口,如需通过 80 端口访问( ECS 实例 安全 组规则允许外网访问80端口),可安装 nginx 后使用 proxy_pass 代理访问
参考:
环境 :Debian 8
过程:
1. Debian 8 默认的 python 版本是2.7,按 jupyter notebook 的安装 建议 ,先安装 python3.6:
- wget https://www.python.org/ftp/python/3.6.3/Python-3.6.3.tgz
- tar xzvf Python-3.6.3.tgz
- cd Python-3.6.3
- ./configure
- make
- make install
![](http://bbs.aliyun.com/attachment/Fid_239/239_1477160476054779_792f80dab40bf8a.png?29)
2. 新建一个普通用户,如liujia,登录后将python3.6加到bash配置文件中:
- echo 'alias python="/usr/local/bin/python3.6"' >> ~/.bashrc
![](http://bbs.aliyun.com/attachment/Fid_239/239_1477160476054779_3e2c0697c6038b4.png?15)
3. 下载 Anaconda3,安装:
- wget https://repo.continuum.io/archive/Anaconda3-5.0.1-Linux-x86_64.sh
- bash ./Anaconda3-5.0.1-Linux-x86_64.sh
![](http://bbs.aliyun.com/attachment/Fid_239/239_1477160476054779_8d655eee3a384a2.png?7)
![](http://bbs.aliyun.com/attachment/Fid_239/239_1477160476054779_afed07c11e9a291.png?8)
![](http://bbs.aliyun.com/attachment/Fid_239/239_1477160476054779_1b4078d032cd7d8.png?20)
4. 安装好后,将 Anaconda3 路径加到 bash 配置 文件中:
- export PATH=/home/liujia/anaconda3/bin:$PATH
- source ~/.bashrc
![](http://bbs.aliyun.com/attachment/Fid_239/239_1477160476054779_aca2af18676d31a.png?13)
5. 运行 jupyter notebook
- jupyter notebook --no-browser --ip=0.0.0.0
6. 默认 jupyter notebook 使用 8888 端口,如需通过 80 端口访问( ECS 实例 安全 组规则允许外网访问80端口),可安装 nginx 后使用 proxy_pass 代理访问
![](http://bbs.aliyun.com/attachment/Fid_239/239_1477160476054779_259b7da946289a6.png?10)
![](http://bbs.aliyun.com/attachment/Fid_239/239_1477160476054779_912805f5b4e83ea.png?33)
![](http://bbs.aliyun.com/attachment/thumb/Fid_239/239_1477160476054779_30fa7b987e77584.png?35)
参考: