1.先安装minicondapython
2.配置conda的镜像为清华的仓库的镜像linux
# conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/vim
# conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/浏览器
# conda config --set show_channel_urls yeside
3.在base python环境安装 jupyterurl
4.配置jupyter
spa
-进到安装目录ip
-生成配置文件部署
# jupyter notebook --generate-config虚拟机
-配置密码
# ipython
# from notebook.auth import passwd
# passwd()
-编辑配置文件
# vim /root/.jupyter/jupyter_notebook_config.py
修改1:提供服务的IP
修改2:提供服务的端口
修改3:上面生成的秘钥
修改4:启动后默认的根目录(即.ipynb文件放哪里)
修改5:启动后默认不打开浏览器
-启动下看看(由于安装在root用户下因此带--allow-root)
# jupyter notebook --allow-root
-从window下的浏览器登陆(jupyter部署在虚拟机里的linux)