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: 找不到指定的模块。

Logo

鸿蒙生态一站式服务平台。

更多推荐