jupyter notebook内核启动报错:ImportError: DLL load failed while importing _device

1.报错信息

File “D:\Programs\Programming\Anaconda3\envs\pytorch_mis\lib\site-packages\zmq\backend\cython_init_.py”, line 6, in
from . import (
ImportError: DLL load failed while importing _device: 找不到指定的模块。

2.解决方案

pyzmq版本冲突,下载满足jupyter server版本的pyzmq

安装低版本的pyzmq

pip install pyzmq==23.0.0

提示jupyter-server 2.7.3需要pyzmp>=24,因此重新安装pyzmq,刚好满足条件即可

pip install pyzmq==24.0.0

安装后启动jupyter notebook,完美解决。

参考资料
[1] jupyter notebook添加虚拟环境,以及切换内核时出现ImportError: DLL load failed while importing _device: 找不到指定的模块。

猜你喜欢

转载自blog.csdn.net/u010072043/article/details/132702052