栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Python

jupyter notebook报错:Bad file descriptor(C:cizeromq

Python 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

jupyter notebook报错:Bad file descriptor(C:cizeromq

看别人的说法,好像是因为当你安装jupyterlab 或者jupyter notebook的时候,会自动安装ipykernel, 然后自动安装了高版本的pyzmq.
此问题是pyzmq版本问题,先卸载pyzmq 22.0.2,然后安装19.0.2版本即可

pip uninstall pyzmq
pip install pyzmq==19.0.2

执行完pip install pyzmq==19.0.2后报如下错误

 

这时候根据Could not find a version that satisfies the ’ 安装包名字’ 百度查解决方法,方法有很多,比如

方法一:pip install 安装包名字

方法二:python -m pip install 安装包名字

方法三:pip --trusted-host pypi.python.org install 安装包名字

这时候部分人会解决,但是还是会出现新的报错

接着继续根据Could not find a version that satisfies the requirement 安装包名字 查问题
会提示换成国内的pip源 可以解决问题

方法一:pip install 安装包名字 -i http://pypi.doubanio.com/simple/ --trusted-host pypi.doubanio.com //豆瓣镜像网站

方法二:pip install 安装包名字 -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com //豆瓣

方法三:pip install 安装包名字 -i https://pypi.tuna.tsinghua.edu.cn/simple/ --trusted-host pypi.tuna.tsinghua.edu.cn //清华大学

最后终于使用豆瓣的镜像源安装成功

 

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/1012499.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号