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有版本冲突的话,可以查看版本对应关系。此处是取巧的方法

相关推荐
猫头虎2 小时前
PyCharm 2025.3 最新变化:值得更新吗?
ide·爬虫·python·pycharm·beautifulsoup·ai编程·pip
sulikey2 小时前
Conda下载依赖/包报错:Connection broken: IncompleteRead(...)
conda·connectbroken·incompleteread·网络中断
kkoral3 小时前
基于MS-Swift 为 Qwen3-0.6B-Base 模型搭建可直接调用的 API 服务
python·conda·fastapi·swift
万粉变现经纪人3 小时前
Python系列Bug修复PyCharm控制台pip install报错:如何解决 pip install 网络报错 企业网关拦截 User-Agent 问题
网络·python·pycharm·beautifulsoup·bug·pandas·pip
2503_9284115612 小时前
项目中的一些问题(补充)
人工智能·python·tensorflow
徐先生 @_@|||13 小时前
Conda最基础使用命令
linux·windows·conda
qq_4182478815 小时前
Linux上部署conda环境
linux·运维·神经网络·机器学习·conda
拾贰_C20 小时前
【VSCode | python | anaconda | cmd | PowerShell】在没有进入conda环境时使用conda命令默认安装位置
vscode·python·conda
jumu2021 天前
高比例清洁能源接入下计及需求响应的配电网重构 关键词:高比例清洁能源;需求响应;配电网重构
tensorflow
Studying 开龙wu1 天前
Linux 系统中apt-get 和 pip命令有什么区别
linux·运维·pip