Python 如何解决此错误;“未找到模块”;来自tensorflow/keras
我正在Jupyter-lab中运行python脚本。 以下是我的代码:Python 如何解决此错误;“未找到模块”;来自tensorflow/keras,python,tensorflow,keras,modulenotfounderror,Python,Tensorflow,Keras,Modulenotfounderror,我正在Jupyter-lab中运行python脚本。 以下是我的代码: 来自keras.preprocessing.image导入ImageDataGenerator 错误是: 没有名为“tensorflow.keras.layers”的模块tensorflow.keras“不是一个包”** 你在使用Linux吗 不知道你使用的所有东西的版本 > PIP3安装< /COD>而不是仅 PIP安装< /代码>。此外,请考虑用Conda安装包,或者与Conda安装时使用PIP。 无论您在哪里键
来自keras.preprocessing.image导入ImageDataGenerator
错误是:
没有名为“tensorflow.keras.layers”的模块tensorflow.keras“不是一个包”**
你在使用Linux吗
不知道你使用的所有东西的版本
<> > <代码> PIP3安装< /COD>而不是仅<代码> PIP安装< /代码>。此外,请考虑用Conda安装包,或者与Conda安装时使用PIP。