Traceback (most recent call last):
File "C:\Users\surik\anaconda3\envs\issa\lib\site-packages\keras\__init__.py", line 3, in <module>
from tensorflow.keras.layers.experimental.preprocessing import RandomRotation
ModuleNotFoundError: No module named 'tensorflow'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "main.py", line 16, in <module>
from keras.models import Sequential
File "C:\Users\surik\anaconda3\envs\issa\lib\site-packages\keras\__init__.py", line 6, in <module>
'Keras requires TensorFlow 2.2 or higher. '
ImportError: Keras requires TensorFlow 2.2 or higher. Install TensorFlow via `pip install tensorflow`
我使用的tensorflow版本是2.2.2,而使用的keras版本是2.4.3,而python版本是3.7.0
答案 0 :(得分:0)
尝试通过pip直接将TensorFlow安装到您的anaconda环境中。