当我从cmd启动jupyter笔记本时,出现以下错误
C:\Users\Ganesh>jupyter notebook
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 46, 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: The specified module could not be found.
我已经在系统变量中设置了以下路径
C:\ProgramData\Anaconda3
C:\ProgramData\Anaconda3\Scripts
C:\ProgramData\Anaconda3Scripts\jupyter
我是否错过了添加系统变量的任何路径 (操作系统版本Windows 10)
答案 0 :(得分:8)
也尝试将以下目录添加到您的环境路径中: C:\ ProgramData \ Anaconda3 \ Library \ mingw-w64 \ bin C:\ ProgramData \ Anaconda3 \ usr \ bin C:\ ProgramData \ Anaconda3 \ Library \ bin
答案 1 :(得分:0)
使用最新的anaconda软件包创建新环境时,这发生在我身上。基本环境中的文件夹(... \ Anaconda3 \ Lib \ site-packages \ zmq)是正确的,因此我进行了替换,此问题已解决。
答案 2 :(得分:0)
首先输入
activate base
然后输入
jupyter notebook
这对我有用
答案 3 :(得分:0)
我可能会迟到,但在 cmd 中输入:conda run jupyter notebook
答案 4 :(得分:-1)
是的,当我发生错误时,@ mountrix所说的也是这种情况。这是用最简单的方法解决的(Alex W的回答):https://stackoverflow.com/a/54225033/12107973
答案 5 :(得分:-1)
输入 activate base 激活环境 然后 jupyter notebook 启动服务器。 它会起作用。