安装
bash Anaconda3-5.2.0-Linux-x86_64.sh
在/etc/profile添加
PATH=/root/anaconda3/bin:$PATH
添加镜像
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --set show_channel_urls yes
添加Jupyter
conda install jupyter
配置root启动权限
jupyter notebook --generate-config --allow-root
jupyter notebook password
查看 /root/.jupyter/jupyter_notebook_config.json密码
- 修改/root/.jupyter/jupyter_notebook_config.py
c.NotebookApp.allow_root = True
c.NotebookApp.ip = '*'
c.NotebookApp.password = 'sha1:83ae5c8bdf1b:035328d2eb2fb88a4f1e496f0d5bf796aead6d9c'
c.NotebookApp.port = 8888
c.NotebookApp.open_browser = False
c.NotebookApp.notebook_dir = '/appdir'
启动
jupyter notebook
网友评论