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: 找不到指定的模块。](https://blog.csdn.net/qq_36819624/article/details/129090242)

相关推荐
code 小楊5 分钟前
yrb 1.5.0 正式发布:Python 极简国内下载加速与全景可视化终端体验!
开发语言·python
2401_8579182913 分钟前
用Python和Twilio构建短信通知系统
jvm·数据库·python
樹JUMP18 分钟前
使用Docker容器化你的Python应用
jvm·数据库·python
章鱼丸-1 小时前
DAY31 文件的拆分和写法
开发语言·python
唐叔在学习1 小时前
Python桌面端应用最小化托盘开发实践
后端·python·程序员
2501_945423541 小时前
使用Fabric自动化你的部署流程
jvm·数据库·python
2401_846341651 小时前
用Pandas处理时间序列数据(Time Series)
jvm·数据库·python
未知鱼1 小时前
Python安全开发之子域名扫描器(含详细注释)
网络·python·安全·web安全·网络安全
2401_831824961 小时前
编写一个Python脚本自动下载壁纸
jvm·数据库·python
2401_857918291 小时前
Python在2024年的主要趋势与发展方向
jvm·数据库·python