使用 pip install jupyter
安装 jupyter 后启动 jupyter notebook
报错:
$ jupyter notebook
Traceback (most recent call last):
File "/usr/local/bin/jupyter", line 8, in <module>
sys.exit(main())
File "/usr/local/lib/python3.7/site-packages/jupyter_core/command.py", line 247, in main
command = _jupyter_abspath(subcommand)
File "/usr/local/lib/python3.7/site-packages/jupyter_core/command.py", line 134, in _jupyter_abspath
'Jupyter command `{}` not found.'.format(jupyter_subcommand)
Exception: Jupyter command `jupyter-notebook` not found.
解决方法:
强制重新安装
pip install --upgrade --force-reinstall --no-cache-dir jupyter
网友评论