Linux安装Anaconda3-5.2.0-Linux-x86_64.sh

安装

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
发布了38 篇原创文章 · 获赞 15 · 访问量 5万+

猜你喜欢

转载自blog.csdn.net/u013057271/article/details/82114292