this is the code. im executing this using spyder. and tried many versions of tensorflow but unable to solve thisthis is the error im getting. before i was gettng import error cannot import 'load_img'
e4eetjau1#
我也遇到过类似的问题。我安装了tensorflow 2.6.0,但安装了tensorflow-estimator 2.10.0。通过降级tensorflow-estimator,这个问题得到了解决:
pip install --upgrade tensorflow-estimator==2.6.0
vd8tlhqk2#
在运行代码之前下载tensorflow。pip install tensorflow
pip install tensorflow
2条答案
按热度按时间e4eetjau1#
我也遇到过类似的问题。我安装了tensorflow 2.6.0,但安装了tensorflow-estimator 2.10.0。通过降级tensorflow-estimator,这个问题得到了解决:
vd8tlhqk2#
在运行代码之前下载tensorflow。
pip install tensorflow