anaconda安装
anaconda代码提示
依次执行下面命令
pip install jupyter_contrib_nbextensions
jupyter contrib nbextension install --user
报错:ModuleNotFoundError: No module named 'notebook.base'
版本问题,将notebook更改为6.1.0版本后问题解决。
pip install jupyter notebook==6.1.0
然后执行
jupyter contrib nbextension install --user
pip install jupyter_nbextensions_configurator
jupyter nbextensions_configurator enable --user
然后再运行jupyter notebook后,就能看到:
启动notebook报错
ImportError: cannot import name 'DEFAULT_NOTEBOOK_PORT' from 'notebook'
用conda安装的jupyter卸载掉了,然后用pip重新安装jupyter,终于可以正常启动,问题解决。
conda remove jupyter
pip install jupyter
更换python版本
Jupyter notebook切换python版本-CSDN博客
Jupyter服务器设置密码(避免每次输入token)
jupyter notebook password