1. 程式人生 > >解決 ImportError: No module named 'tensorflow.core'

解決 ImportError: No module named 'tensorflow.core'

python

import keras

出現 ImportError: No module named 'tensorflow.core'

輸入


>>> pip install --upgrade tensorflow-gpu

>>> pip install --upgrade tensorflow

>>> pip install keras -U --pre


解決 ImportError: No module named 'tensorflow.core'