jupyter notebook打不开或报错 [jupyter notebook Traceback (most recent call last):]

jupyter notebook打不开或报错 [jupyter notebook Traceback (most recent call last):]

错误描述:重新安装Anaconda3之后,双击jupyter notebook的图标打不开,使用命令行打开则出现以下错误。并参考了两篇博客试了两种方法,方法1测试后仍打不开,方法2测试后可以打开。

Traceback (most recent call last):
  File "C:\ProgramData\Anaconda3\Scripts\jupyter-notebook-script.py", line 6, in <module>
    from notebook.notebookapp import main
  File "C:\ProgramData\Anaconda3\lib\site-packages\notebook\notebookapp.py", line 47, in <module>
    from zmq.eventloop import ioloop
  File "C:\ProgramData\Anaconda3\lib\site-packages\zmq\__init__.py", line 47, in <module>
    from zmq import backend
  File "C:\ProgramData\Anaconda3\lib\site-packages\zmq\backend\__init__.py", line 40, in <module>
    reraise(*exc_info)
  File "C:\ProgramData\Anaconda3\lib\site-packages\zmq\utils\sixcerpt.py", line 34, in reraise
    raise value
  File "C:\ProgramData\Anaconda3\lib\site-packages\zmq\backend\__init__.py", line 27, in <module>
    _ns = select_backend(first)
  File "C:\ProgramData\Anaconda3\lib\site-packages\zmq\backend\select.py", line 27, in select_backend
    mod = __import__(name, fromlist=public_api)
  File "C:\ProgramData\Anaconda3\lib\site-packages\zmq\backend\cython\__init__.py", line 6, in <module>
    from . import (constants, error, message, context,
ImportError: DLL load failed: 找不到指定的模块。

方法1:conda在下重装pyzmq。

参考博客:https://blog.csdn.net/lwgkzl/article/details/85202207#commentBox

先输入命令

pip uninstall pyzmq 

再输入命令

pip install pyzmq

方法2:重装jupyter notebook

参考:https://www.cnblogs.com/it-ruanjie/p/15256579.html

选择打开Anaconda Prompt(Anaconda3)
jupyter notebook打不开或报错 [jupyter notebook Traceback (most recent call last):]_第1张图片
先输入命令

pip uninstall jupyter 

再输入命令

pip install jupyter 

如果安装不成功,则切换清华源头

pip install jupyter -i https://pypi.tuna.tsinghua.edu.cn/simple

你可能感兴趣的:(软件安装及环境配置排雷坑,jupyter,python,ide)