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

相关推荐
陈苏同学9 小时前
[已解决] Solving environment: failed with repodata from current_repodata.json (python其实已经被AutoDL装好了!)
linux·python·conda
skywalk81632 天前
windows10 pip安装ete4报错
开发语言·python·pip
小鸡吃米…2 天前
TensorFlow - 数学基础
人工智能·python·tensorflow
skywalk81632 天前
在Windows10 安装了miniconda,执行conda报错:ModuleNotFoundError: No module named ‘conda‘
linux·前端·conda
SimpleLearingAI2 天前
Conda + Mamba 极速安装 CUDA / NCCL 实战指南
conda
勾股导航2 天前
TensorFlow GPU版本
人工智能·python·tensorflow
小鸡吃米…3 天前
人工智能的理解
python·tensorflow
Albert Edison3 天前
【Python】列表|元组
开发语言·python·pip
小鸡吃米…3 天前
TensorFlow 安装教程
python·tensorflow
CYpdpjRnUE4 天前
MPU9250模块SPI驱动程序:原始数据读取与I2C主机模式配置AK8963磁力计教程
pip