jupyter-notebook
not found.`运行 jupyter 时突然报错 之前是正常的,报错信息如下:
jupyter notbook
Traceback (most recent call last):
File “xxx\lib\runpy.py”, line 193, in _run_module_as_main
“main”, mod_spec)
File “xxx\lib\runpy.py”, line 85, in run_code
exec(code, run_globals)
File "xxx\Scripts\jupyter.exe_main.py", line 9, in
File “xxx\lib\site-packages\jupyter_core\command.py”, line 247, in main
command = _jupyter_abspath(subcommand)
File “xxx\lib\site-packages\jupyter_core\command.py”, line 134, in _jupyter_abspath
‘Jupyter command {}
not found.’.format(jupyter_subcommand)
Exception: Jupyter command jupyter-notbook
not found.
试了很多方法都没用,直接卸载jupyter 然后重装
1.重启一下电脑试试能不能打开,不行的话就试试第二步 重装
2.输入
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 就ok 希望对你有用