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)

相关推荐
小徐敲java19 分钟前
python的FastAPI框架
开发语言·python·fastapi
CHANG_THE_WORLD33 分钟前
Python 切片操作全面解析
开发语言·python
是一个Bug1 小时前
Spring事件监听器在电商订单系统中的应用
java·python·spring
shangjian0071 小时前
Python基础-闭包和装饰器
开发语言·python
三维空间1 小时前
如何在Python多进程中避免死锁问题?
python
冤大头编程之路1 小时前
Python并发编程实操教程:多线程/多进程/异步全解析
python
dhdjjsjs1 小时前
Day30 Python Study
开发语言·前端·python
程序员小寒2 小时前
VSCode有哪些好用的插件和快捷键?
ide·vscode·编辑器
Eric.Lee20212 小时前
mujoco构建无物理约束的几何体运动
python·物理引擎·mujoco·物理模型仿真
wadesir2 小时前
用Python实现ggplot2风格绘图(零基础入门Seaborn与Matplotlib美化技巧)
开发语言·python·matplotlib