anaconda+jupyter notebook 安装配置

拜拜、爱过 提交于 2020-04-27 21:17:59

安装Anaconda

清华大学开源软件镜像站 清华大学开源软件镜像站选择合适自己的版本

wget https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/Anaconda3-5.2.0-Linux-x86_64.sh
chmod u+x Anaconda3-5.2.0-Linux-x86_64.sh
bash Anaconda3-5.2.0-Linux-x86_64.sh
Please, press ENTER to continue
>>>
点回车

===================================
Anaconda End User License Agreement
===================================
点q退出

Do you accept the license terms? [yes|no]
输入yes

Anaconda3 will now be installed into this location:
/home/zhangxiao/anaconda3
  - Press ENTER to confirm the location
  - Press CTRL-C to abort the installation
  - Or specify a different location below
点回车开始安装

Do you wish the installer to prepend the Anaconda3 install location
to PATH in your /home/zhangxiao/.bashrc ? [yes|no]
输入yes

Do you wish to proceed with the installation of Microsoft VSCode? [yes|no]
输入no

更新使安装生效

source  .bashrc

终端输入conda验证安装成功

jupyter notebook 远程登录配置

jupyter notebook --generate-config # 生成jupyter notebook配置文件 ipython #打开ipython

from notebook.auth import passwd
passwd() #生成密码

生成密码修改jupyper配置文件

vim  ~/.jupyter/jupyter_notebook_config.py

174行 c.NotebookApp.ip='*' 220行 c.NotebookApp.open_browser = False 229行 c.NotebookApp.password = u'把上面的文本粘贴到这里' 240行 c.NotebookApp.port =8888

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!