AttributeError: module ‘tensorflow._api.v1.compat.v2‘ has no attribute ‘__internal__‘

AttributeError: module ‘tensorflow._api.v1.compat.v2‘ has no attribute ‘__internal__‘

AttributeError: module 'tensorflow._api.v1.compat.v2' has no attribute '__internal__'
解决方法:

1.卸载:

pip uninstall keras

2.安装:

pip install -i https://pypi.douban.com/simple/ h5py==2.10.0

pip install -i https://pypi.douban.com/simple/ keras==2.3.1

原文链接:https://blog.csdn.net/shanxiderenheni/article/details/122269075

你可能感兴趣的:(python基础,tensorflow,python,numpy)