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

相关推荐
Jay Kay7 小时前
TensorFlow源码深度阅读指南
人工智能·python·tensorflow
起个名好难00001 天前
conda 常用指令
conda
Mark White1 天前
把大象塞进冰箱总共分几步:讲讲dockerfile里conda的移植
conda
巴里巴气1 天前
2025.1版本PyCharam找不到已存在的conda虚拟环境
pycharm·conda
互联网搬砖老肖1 天前
Python 中如何使用 Conda 管理版本和创建 Django 项目
python·django·conda
IAM四十二11 天前
Google 端侧 AI 框架 LiteRT 初探
android·深度学习·tensorflow
Tipriest_11 天前
sudo安装pip包的影响
python·pip·sudo
Brilliant Nemo11 天前
web布局02
前端·人工智能·tensorflow
聚客AI11 天前
GPU利用率90%的秘诀:PyTorch/TensorFlow高阶优化技巧
人工智能·pytorch·tensorflow
茫茫人海一粒沙12 天前
Python 包管理新选择:全面了解 uv(附 Conda 对比)
python·conda·uv