jupyter卸载
pip uninstall -y jupyter
pip uninstall -y jupyter_core
pip uninstall -y jupyter-client
pip uninstall -y jupyter-console
pip uninstall -y notebook
pip uninstall -y qtconsole
pip uninstall -y nbconvert
pip uninstall -y nbformat
jupyter安装
conda install jupyterlab
生成配置文件:
jupyter lab --generate-config
jupyter/jupyter_notebook_config.py with default config? [y/N]y
生成密码
ipython
from notebook.auth import passwd
passwd()
Enter password:写小可爱你的密码
Verify password:再次输入小可爱的密码
修改配置文件jupyter_notebook_config.py文件
vim /root/.jupyter/jupyter_notebook_config.py
c.NotebookApp.ip='*' # 将ip设置为*,允许任何ip都可以访问
c.NotebookApp.password = u'sha1:36453f23eebd:9ca~~~~~~~~~~~~~~~~~~~~~~~~~~~~' # 设置登录密码
c.NotebookApp.open_browser = False # 因为服务器上面并没有浏览器提供给jupyter打开
c.NotebookApp.port = 8888 # 设置端口号
c.NotebookApp.notebook_dir = u'/root/anaconda3/envs/tensorflow/deep_learning_practise'# 指定文件路径
c.NotebookApp.allow_remote_access = True # 允许远程访问
启动jupyterlat:
jupyter lab -allow-root
测试工作软件包下载,要不知道下载哪个就都下载下
软件包:https://pan.baidu.com/s/1NxB2HaGRrRs9ERVu9w3SvQ
提取码:nn5j