Python 如何解决这些问题?错误:找不到版本

Python 如何解决这些问题?错误:找不到版本,python,Python,我该如何解决?谢谢你的理解 您试图将ImageDataGenerator作为一个独立模块使用,而它实际上是Keras的一部分,因此您必须安装Keras才能使用Keras的模块ImageDataGenerator 在代码中使用pip或pip3安装Keras并导入Imagedatagenerator 没有GPU时: C:\Users\isato\Desktop>pip install ImageDataGenerator ERROR: Could not find a version tha

我该如何解决?谢谢你的理解

您试图将ImageDataGenerator作为一个独立模块使用,而它实际上是Keras的一部分,因此您必须安装Keras才能使用Keras的模块ImageDataGenerator

在代码中使用pippip3安装Keras并导入Imagedatagenerator

没有GPU时

C:\Users\isato\Desktop>pip install ImageDataGenerator

ERROR: Could not find a version that satisfies the requirement imageDataGenerator (from version: none) 
ERROR: No matching distribution found for ImageDataGenerator
pip install tensorflow keras
使用GPU

C:\Users\isato\Desktop>pip install ImageDataGenerator

ERROR: Could not find a version that satisfies the requirement imageDataGenerator (from version: none) 
ERROR: No matching distribution found for ImageDataGenerator
pip install tensorflow keras
这假设您已经安装了conda,或者您可能需要安装操作系统级依赖项,例如Ubuntu

pip install tensorflow-gpu keras

每当你想安装一个新的软件包时,请使用网站进行检查


这可能就是您试图安装的模块。如果您遇到同样的错误,只需在谷歌上搜索模块名,然后再搜索PyPI,这样它就会提供PyPI链接,并显示用于安装模块的名称的确切名称。

您要安装的库的名称是什么?