[英]ModuleNotFoundError: No module named 'tensorflow.contrib' Error
I am getting such an error in the keras codes,wrote in pycharm.Tried the solutions on the internet but I couldn't find a solution.我在 keras 代码中遇到这样的错误,写在 pycharm 中。在互联网上尝试了解决方案,但我找不到解决方案。 Do you have any suggestions?你有什么建议吗?
Please install the tensorflow and pillow using pip install tensorflow
and pip install pillow
then do a little changes as below while importing libraries to fix this error:请使用pip install tensorflow
和pip install pillow
import numpy as np
from PIL import Image
from tensorflow import keras
from tensorflow.keras.applications import resnet50
from tensorflow.keras.preprocessing import image
Note: Please mention the error code in your question not in the form of a screenshot which will be easy to replicate the issue.注意:请在您的问题中提及错误代码,而不是以屏幕截图的形式,这样很容易复制问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.