我无法启动Jupyter Notebook

时间:2020-04-02 17:46:00

标签: python jupyter-notebook

我使用以下方式安装了jupyter

pip install jupyter

现在当我尝试使用jupyter运行

python -m notebook

并尝试运行其中的任何ipynb文件,它显示500:内部服务器错误 命令行显示

[W 23:01:34.693 NotebookApp] Error loading server extension ipyparallel.nbextension
Traceback (most recent call last):
  File "C:\Users\Dell\AppData\Local\Programs\Python\Python37\lib\site-packages\notebook\notebookapp.py", line 1670, in init_server_extensions
    mod = importlib.import_module(modulename)
  File "C:\Users\Dell\AppData\Local\Programs\Python\Python37\lib\importlib\__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
  File "<frozen importlib._bootstrap>", line 983, in _find_and_load
  File "<frozen importlib._bootstrap>", line 953, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
  File "<frozen importlib._bootstrap>", line 983, in _find_and_load
  File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "C:\Users\Dell\AppData\Local\Programs\Python\Python37\lib\site-packages\ipyparallel\__init__.py", line 18, in <module>
    from .client.asyncresult import *
  File "C:\Users\Dell\AppData\Local\Programs\Python\Python37\lib\site-packages\ipyparallel\client\asyncresult.py", line 23, in <module>
    from IPython import get_ipython
  File "C:\Users\Dell\AppData\Local\Programs\Python\Python37\lib\site-packages\IPython\__init__.py", line 56, in <module>
    from .terminal.embed import embed
  File "C:\Users\Dell\AppData\Local\Programs\Python\Python37\lib\site-packages\IPython\terminal\embed.py", line 14, in <module>
    from IPython.core.magic import Magics, magics_class, line_magic
  File "C:\Users\Dell\AppData\Local\Programs\Python\Python37\lib\site-packages\IPython\core\magic.py", line 20, in <module>
    from . import oinspect
  File "C:\Users\Dell\AppData\Local\Programs\Python\Python37\lib\site-packages\IPython\core\oinspect.py", line 47, in <module>
    from pygments.formatters import HtmlFormatter
  File "C:\Users\Dell\AppData\Roaming\Python\Python37\site-packages\pygments\formatters\__init__.py", line 143, in __getattr__
    _load_formatters(info[0])
  File "C:\Users\Dell\AppData\Roaming\Python\Python37\site-packages\pygments\formatters\__init__.py", line 39, in _load_formatters
    mod = __import__(module_name, None, None, ['__all__'])
  File "C:\Users\Dell\AppData\Roaming\Python\Python37\site-packages\pygments\formatters\html.py", line 18, in <module>
    from pygments.formatter import Formatter
  File "C:\Users\Dell\AppData\Roaming\Python\Python37\site-packages\pygments\formatter.py", line 15, in <module>
    from pygments.styles import get_style_by_name
ModuleNotFoundError: No module named 'pygments.styles'
To access the notebook, open this file in a browser:
    file:///C:/Users/Dell/AppData/Roaming/jupyter/runtime/nbserver-20672-open.html
Or copy and paste one of these URLs:
    http://localhost:8888/?token=8ee269226240ce7b5a7c580664ade26546bb7e0691775535
 or http://127.0.0.1:8888/?token=8ee269226240ce7b5a7c580664ade26546bb7e0691775535

我认为使用水蟒可能有助于摆脱困境。 但是每次我运行anaconda导航器时,它都会崩溃。 然后我尝试通过conda提示符运行anaconda 而且我看到它对Jupyter plus spyder也不起作用,并且存在相同的问题。 我想ipykernel出了点问题。

0 个答案:

没有答案