Python问题涉及到库。我遇到了一些错误。

huangapple go评论65阅读模式
英文:

Python problem with libraries. I got some error

问题

我试图使用pip模块下载imageai,但出现了以下错误:

ERROR: tensorflow-intel 2.11.0要求keras<2.12,>=2.11.0,但你的keras版本是2.4.3,不兼容。
ERROR: tensorflow-intel 2.11.0要求numpy>=1.20,但你的numpy版本是1.19.3,不兼容。

我不知道该怎么办。请帮忙。

英文:

I was trying to download imageai using pip module and I got following error:

ERROR: tensorflow-intel 2.11.0 has requirement keras&lt;2.12,&gt;=2.11.0, but you&#39;ll have keras 2.4.3 which is incompatible.
ERROR: tensorflow-intel 2.11.0 has requirement numpy&gt;=1.20, but you&#39;ll have numpy 1.19.3 which is incompatible.

I don't know what to do. Please help.

答案1

得分: 2

你看到的错误消息表明,你所安装的当前版本的TensorFlow(tensorflow-intel 2.11.0)需要与你系统当前安装的Keras和Numpy版本不同的版本。具体来说,tensorflow-intel 2.11.0 需要的Keras版本应该小于 2.12,但你安装了 2.4.3 版本,另外它还需要 Numpy 版本大于或等于 1.20,但你安装的是 1.19.3 版本。

你可以尝试升级Keras和Numpy来满足这些要求:

pip install keras==2.11.0
pip install numpy>=1.20
英文:

The error message you are seeing indicates that the current version of TensorFlow that you have installed (tensorflow-intel 2.11.0) requires different versions of Keras and Numpy than the versions that are currently installed on your system. Specifically, tensorflow-intel 2.11.0 requires Keras version less than 2.12 but you have version 2.4.3 installed, and it also requires Numpy version greater than or equal to 1.20, but you have version 1.19.3 installed.

You could try upgrading Keras and Numpy to meet these requirements:

pip install keras==2.11.0
pip install numpy&gt;=1.20

huangapple
  • 本文由 发表于 2023年2月18日 19:57:33
  • 转载请务必保留本文链接:https://go.coder-hub.com/75493170.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定