anaconda+jupyter notebook 安装配置

安装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

猜你喜欢

转载自www.cnblogs.com/phymamzjw/p/9178793.html