参考网址 http://www.linuxdiyf.com/linux/25117.html
anoconda 下载网址:https://repo.continuum.io/archive/
选择python3.5 的版本 也就是 anconda3 4.2.0
如果可以在线下载直接:
$ wget https://repo.continuum.io/archive/Anaconda3-4.2.0-Linux-x86_64.sh # 64位系统
$ wget https://repo.continuum.io/archive/Anaconda3-4.2.0-Linux-x86.sh # 32位系统
安装:
$ bash Anaconda3-4.2.0-Linux-x86_64.sh
安装的过程中记得修改软件安装的位置,默认会安装到/home/username/anaconda3下面
安装完成之后
修改环境配置
echo $PATH
PATH=$PATH:/app/anaconda3/bin
# 更新bashrc以立即生效
source~/.bashrc
可参考 http://blog.csdn.net/fangwc/article/details/51119210
启动jupyter
jupyter: jupyter notebook --ip=.... --port=<port>
在浏览器输入 ip:port就可以启动
注意在哪启动jupyter 初次目录就在哪
已经安装python包,python3能找到,jupyter找不到时,修改jupyter的Kernel http://blog.csdn.net/xiaodong193/article/details/51628850
给jupyter设置密码:
生成配置文件 : jupyter notebook --generate-config
生成密码,打开python创建一个密文密码:
In [1]: from notebook.auth import passwd In [2]: passwd() Enter password: Verify password: Out[2]: 'sha1:ce23d945972f:34769685a7ccd3d08c84a18c63968a41f1140274'把生成的密文‘sha:ce…’复制下来
修改默认配置文件
vim ~/.jupyter/jupyter_notebook_config.py进行以下修改:
c.NotebookApp.ip='*' # 就是设置所有ip皆可访问 c.NotebookApp.password = u'sha:ce...刚才复制的那个密文' c.NotebookApp.open_browser = False # 禁止自动打开浏览器 c.NotebookApp.port =8888 #随便指定一个端口启动jupyter notebook
jupyter notebook