环境:Debian 8
过程:
1. Debian 8 默认的 python 版本是2.7,按 jupyter notebook 的安装建议,先安装 python3.6:
![在 Debian 8 系统里安装 jupyter notebook 在 Debian 8 系统里安装 jupyter notebook](https://image.shishitao.com:8440/aHR0cHM6Ly9waWFuc2hlbi5jb20vaW1hZ2VzLzg5Lzc0NTljMmFiMjQ2OTEwMzA3NjVhNTJjNzZhZjU4N2E5LnBuZw%3D%3D.png?w=700&webp=1)
2. 新建一个普通用户,如liujia,登录后将python3.6加到bash配置文件中:
![在 Debian 8 系统里安装 jupyter notebook 在 Debian 8 系统里安装 jupyter notebook](https://image.shishitao.com:8440/aHR0cHM6Ly9waWFuc2hlbi5jb20vaW1hZ2VzLzU2Ni8wNDUwMmM5MjBhYmRmMjZiODkyODkxZWFkMmZlMjJiZS5wbmc%3D.png?w=700&webp=1)
3. 下载 Anaconda3,安装:
![在 Debian 8 系统里安装 jupyter notebook 在 Debian 8 系统里安装 jupyter notebook](https://image.shishitao.com:8440/aHR0cHM6Ly9waWFuc2hlbi5jb20vaW1hZ2VzLzIwMy8yNzg5OWMzODg3MThlZGQyZmM4YmRkODJlMDEzYjlkYi5wbmc%3D.png?w=700&webp=1)
![在 Debian 8 系统里安装 jupyter notebook 在 Debian 8 系统里安装 jupyter notebook](https://image.shishitao.com:8440/aHR0cHM6Ly9waWFuc2hlbi5jb20vaW1hZ2VzLzMyOS8wNWExN2VkYjNiNjU4MDBlMTZjY2M3NzQxMTg3ZTgwMS5wbmc%3D.png?w=700&webp=1)
![在 Debian 8 系统里安装 jupyter notebook 在 Debian 8 系统里安装 jupyter notebook](https://image.shishitao.com:8440/aHR0cHM6Ly9waWFuc2hlbi5jb20vaW1hZ2VzLzY5Ni9iNWJiYWZiZGFjZmJiNDNhNWM2YWQ5OGNmNTdjM2M5MC5wbmc%3D.png?w=700&webp=1)
4. 安装好后,将 Anaconda3 路径加到 bash 配置文件中:
![在 Debian 8 系统里安装 jupyter notebook 在 Debian 8 系统里安装 jupyter notebook](https://image.shishitao.com:8440/aHR0cHM6Ly9waWFuc2hlbi5jb20vaW1hZ2VzLzQ3NC81ZGEyYWI0NjI0NmExMWFmYThjN2E3MjhlMzFhNWMzMi5wbmc%3D.png?w=700&webp=1)
5. 运行 jupyter notebook
6. 默认 jupyter notebook 使用 8888 端口,如需通过 80 端口访问(ECS实例安全组规则允许外网访问80端口),可安装 nginx 后使用 proxy_pass 代理访问
![在 Debian 8 系统里安装 jupyter notebook 在 Debian 8 系统里安装 jupyter notebook](https://image.shishitao.com:8440/aHR0cHM6Ly9waWFuc2hlbi5jb20vaW1hZ2VzLzYyNi84YzdjZTJhMmIxMTUxMWZiOGU1NjdiYzFhOGNkNjE0YS5wbmc%3D.png?w=700&webp=1)
![在 Debian 8 系统里安装 jupyter notebook 在 Debian 8 系统里安装 jupyter notebook](https://image.shishitao.com:8440/aHR0cHM6Ly9waWFuc2hlbi5jb20vaW1hZ2VzLzg4OC80M2FjZmNlOWNhOGNkZWYxZDlhODE1ZmU0NmRiYTUwMC5wbmc%3D.png?w=700&webp=1)
![在 Debian 8 系统里安装 jupyter notebook 在 Debian 8 系统里安装 jupyter notebook](https://image.shishitao.com:8440/aHR0cHM6Ly9waWFuc2hlbi5jb20vaW1hZ2VzLzI4OS8zMWJhYjU4NDVlYWVjY2MxMGM0NTA4ZTE3NGUyN2JkOS5wbmc%3D.png?w=700&webp=1)
参考: