No module named 'jupyter_core'
解决方法:
pip3 install --upgrade jupyter_core
pip3 install --upgrade notebook
pip3 install --upgrade lesscpy
pip3 install --upgrade jupyterthemes
又出现:No module named 'ipython_genutils.py3compat'
解决方法1:
pip install py3compat (依然没好)
解决方法2:
使用conda重新安装jupyter
conda install -c conda-forge jupyter
生成jupyter配置文件:
jupyter notebook --generate-config
ipython
from notebook.authimport passwd
passwd() #创建密码并生成一串字符,以备后用
exit()
修改配置文件
vi~/.jupyter/jupyter_notebook_config.py
vi ~/.jupyter/jupyter_notebook_config.py
c.NotebookApp.notebook_dir=
c.NotebookApp.ip = '*'
c.NotebookApp.password= u'****#$cb358'#这里需要改为第(2)步你自己电脑上生成的密钥字符串
#c.NotebookApp.port =9001
jupyter notebook
jupyter 好了~