我使用的是 Windows 10,Python 3.9
我跑了
pip install jupyter_contrib_nbextensions
jupyter contrib nbextension install
然后
jupyter nbextension enable spellchecker/main
然后收到关于 request x spellchecker/main
有问题的错误。
我现在完全迷失了。
我尝试使用 pip uninstall jupyter_contrib_nbextensions
卸载并重新安装。
这一次,情况有所不同 - 我得到了
C:\windows\system32>jupyter contrib nbextension install
Traceback (most recent call last):
File "c:\program files\python39\lib\runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "c:\program files\python39\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "C:\Program Files\Python39\Scripts\jupyter.exe\__main__.py", line 7, in <module>
File "c:\program files\python39\lib\site-packages\jupyter_core\command.py", line 285, in main
command = _jupyter_abspath(subcommand)
File "c:\program files\python39\lib\site-packages\jupyter_core\command.py", line 124, in _jupyter_abspath
raise Exception(
Exception: Jupyter command `jupyter-contrib` not found.
我尝试将 PYTHONPATH
作为环境变量添加到 scripts
文件夹的路径中,但这没有用,尽管我可能做错了。
我的 Python 安装在 c:\program files\python39
中,我认为这是写保护的,所以当我使用 pip
时,东西会安装在我的用户应用程序数据中。
我不知道接下来要尝试什么。
非常感谢任何帮助。