ImportError: cannot import name ‘get_config‘ from ‘tensorflow.python.eager.context‘解决办法

ImportError: cannot import name 'get_config' from 'tensorflow.python.eager.context'解决办法

报错原因:ImportError: cannot import name ‘get_config’ from ‘tensorflow.python.eager.context’

解决方法:

pip install --upgrade tensorflow
pip install --upgrade tensorflow-gpu

你可能感兴趣的:(tensorflow,python,人工智能)