在 Debian 8 系统里安装 jupyter notebook

云友“kindasusenn”在 安装   jupyter   notebook  时遇到了 问题 ,所以在这里也想实践一下。  
 
环境 :Debian 8  
 
过程:  
 
1. Debian 8 默认的 python 版本是2.7,按 jupyter notebook 的安装 建议 ,先安装 python3.6:  
  1. wget https://www.python.org/ftp/python/3.6.3/Python-3.6.3.tgz
  2. tar xzvf Python-3.6.3.tgz
  3. cd Python-3.6.3
  4. ./configure
  5. make
  6. make install
 
 
 
2. 新建一个普通用户,如liujia,登录后将python3.6加到bash配置文件中:  
  1. echo 'alias python="/usr/local/bin/python3.6"' >> ~/.bashrc
 
 
 
3.  下载  Anaconda3,安装:  
  1. wget https://repo.continuum.io/archive/Anaconda3-5.0.1-Linux-x86_64.sh
  2. bash ./Anaconda3-5.0.1-Linux-x86_64.sh
 
 
 
 
 
 
 
 
4. 安装好后,将 Anaconda3 路径加到 bash  配置 文件中:  
  1. export PATH=/home/liujia/anaconda3/bin:$PATH
  2. source ~/.bashrc
 
 
 
5. 运行 jupyter notebook  
  1. jupyter notebook --no-browser --ip=0.0.0.0
 
 
6. 默认 jupyter notebook 使用 8888 端口,如需通过 80 端口访问( ECS 实例 安全 组规则允许外网访问80端口),可安装 nginx 后使用 proxy_pass 代理访问  
 
 
 
 
 
 
参考:
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值