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

相关推荐
风落无尘1 小时前
Python 包发布全流程:从项目结构到 PyPI 上线,以及我踩过的那些坑
开发语言·python·pip
QFIUNE17 小时前
CD-HIT 详解:序列去冗余、安装使用与聚类结果解析
linux·服务器·机器学习·数据挖掘·conda·聚类
万粉变现经纪人2 天前
如何解决 pip install llama-cpp-python 报错 未安装 CMake/Ninja 或 CPU 不支持 AVX 问题
开发语言·python·开源·aigc·pip·ai写作·llama
江南十四行2 天前
从零开始掌握BP神经网络:基于TensorFlow的回归与分类实战
神经网络·回归·tensorflow
绘梨衣5473 天前
Agentic RAG、传统RAG、ReAct、Function Calling 核心关系
人工智能·chatgpt·tensorflow
Echo_NGC22373 天前
【论文解读】Attention Is All You Need —— AI 时代的“开山之作“,经典中的经典(transformer小白导读)
人工智能·python·深度学习·神经网络·机器学习·conda·transformer
何中应3 天前
Conda安装&使用
python·conda·python3.11
林浩杨4 天前
Pip对当前环境下的所有包进行更新
pip
qq_229058014 天前
conda中安装 rdkit版本的postgresql然后在Win11中使用虚拟环境里的rdkit
数据库·postgresql·conda
咯哦哦哦哦5 天前
Foundationpose环境配置【非conda--纯UV】(linux22.04+python3.10)
python·pip·uv