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設(shè)置為*,允許任何ip都可以訪問
c.NotebookApp.password = u'sha1:36453f23eebd:9ca~~~~~~~~~~~~~~~~~~~~~~~~~~~~' # 設(shè)置登錄密碼
c.NotebookApp.open_browser = False # 因?yàn)榉?wù)器上面并沒有瀏覽器提供給jupyter打開
c.NotebookApp.port = 8888 # 設(shè)置端口號
c.NotebookApp.notebook_dir = u'/root/anaconda3/envs/tensorflow/deep_learning_practise'# 指定文件路徑
c.NotebookApp.allow_remote_access = True # 允許遠(yuǎn)程訪問
啟動(dòng)jupyterlat:
jupyter lab -allow-root
測試工作軟件包下載这嚣,要不知道下載哪個(gè)就都下載下
軟件包:https://pan.baidu.com/s/1NxB2HaGRrRs9ERVu9w3SvQ
提取碼:nn5j