安装tensorflow GPU版本冲突问题

安装tensorflow GPU版本​​​​​​window下,cuda、NVIDIA、 TensorFlow-GPU版本关系

 最后一步输出如下,应该是哪里的版本不匹配,

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.
daal4py 2021.5.0 requires daal==2021.4.0, which is not installed.
conda-repo-cli 1.0.4 requires pathlib, which is not installed.
tensorflow 2.10.0 requires absl-py>=1.0.0, but you have absl-py 0.15.0 which is incompatible.
tensorflow 2.10.0 requires flatbuffers>=2.0, but you have flatbuffers 1.12 which is incompatible.
tensorflow 2.10.0 requires numpy>=1.20, but you have numpy 1.19.5 which is incompatible.
jupyter-server 1.13.5 requires pywinpty<2; os_name == "nt", but you have pywinpty 2.0.2 which is incompatible.
dask-ml 2022.5.27 requires numpy>=1.20.0, but you have numpy 1.19.5 which is incompatible.
bokeh 2.4.2 requires typing-extensions>=3.10.0, but you have typing-extensions 3.7.4.3 which is incompatible.
Successfully installed absl-py-0.15.0 clang-5.0 flatbuffers-1.12 h5py-3.1.0 numpy-1.19.5 six-1.15.0 tensorflow-gpu-2.6.0 termcolor-1.1.0 typing-extensions-3.7.4.3

 决定针对上述error对涉及到的库版本进行改变

但是cpu和gpu版本的tensorflow对这些库的版本要求冲突了,满足gpu不能满足cpu

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.
tensorflow 2.10.0 requires absl-py>=1.0.0, but you have absl-py 0.10.0 which is incompatible.
tensorflow 2.10.0 requires numpy>=1.20, but you have numpy 1.19.5 which is incompatible.

降低tensorflow版本后解决问题(改到tensorflow2.6.0版本+tensorflow-gpu 2.6.0)

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值