conda环境pip 安装Tensorflow-gpu 2.10.2提示nbconvert 的包依赖冲突

问题如下:

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.

nbconvert 7.16.4 requires beautifulsoup4, which is not installed.

nbconvert 7.16.4 requires bleach!=5.0.0, which is not installed.

nbconvert 7.16.4 requires defusedxml, which is not installed.

nbconvert 7.16.4 requires jinja2>=3.0, which is not installed.

nbconvert 7.16.4 requires jupyter-core>=4.7, which is not installed.

nbconvert 7.16.4 requires jupyterlab-pygments, which is not installed.

nbconvert 7.16.4 requires mistune<4,>=2.0.3, which is not installed.

nbconvert 7.16.4 requires nbclient>=0.5.0, which is not installed.

nbconvert 7.16.4 requires nbformat>=5.7, which is not installed.

nbconvert 7.16.4 requires pandocfilters>=1.4.1, which is not installed.

nbconvert 7.16.4 requires pygments>=2.4.1, which is not installed.

nbconvert 7.16.4 requires tinycss2, which is not installed.

nbconvert 7.16.4 requires traitlets>=5.1, which is not installed.

解决:

pip install -U nbconvert

更新最新版本的nbconvert即可,因为安装的Tensorflow-gpu版本很新,故相关nbconvert直接更新最新的,理论上可以适配

更新后一没有报error说conflict,同时仔细观察发现要求的依赖版本也都满足。

所以视为可行方案。

如果TensorFlow和nbconvert有版本冲突的话,可以查看版本对应关系。此处是取巧的方法

相关推荐
Dshuishui18 小时前
Locust 压测网站小工具
python·pip
曦云沐20 小时前
Linux 下极简安装 Conda(Miniconda / Anaconda),5 分钟搞定环境配置
linux·运维·conda
独隅3 天前
PyTorch模型转换为TensorFlow Lite实现 iOS 部署的全面指南
pytorch·ios·tensorflow
亚林瓜子4 天前
AWS Glue Python Shell任务中pip安装依赖库
python·shell·pip·aws·glue·job
花间相见5 天前
【AI私人家庭医生day01】—— 项目介绍
大数据·linux·人工智能·python·flask·conda·ai编程
万粉变现经纪人5 天前
如何解决 pip install flash-attention 报错 需要 SM_80+(Ampere)架构 问题
python·架构·django·bug·virtualenv·pip·pygame
键盘鼓手苏苏5 天前
Flutter 三方库 pip 的鸿蒙化适配指南 - 实现标准化的画中画(Picture-in-Picture)模式、支持视频悬浮窗与多任务并行交互
flutter·pip·harmonyos
Zero_to_zero12346 天前
如何多机复用 conda 环境
conda
九河_6 天前
从requirements.txt中安装缺失的包
python·conda·pip·环境管理
山海AI手册6 天前
028、边缘AI与嵌入式部署:TensorFlow Lite/PyTorch Mobile实战手记
人工智能·pytorch·tensorflow