如题,在win10下,anaconda 环境里用pip安装好tensorflow2.x 最新版本,安装成功,但是import报错

module 'tensorflow.python.keras.utils.generic_utils' has no attribute 'populate_dict_with_module_objects'

到官网下载2.0版本:

https://pypi.org/project/tensorflow/2.0.0/#files

我下的是:tensorflow-2.0.0-cp37-cp37m-win_amd64.whl 

然后进入文件所在路径,执行

pip install tensorflow-2.0.0-cp37-cp37m-win_amd64.whl

再import 就ok了

GitHub 加速计划 / te / tensorflow
184.54 K
74.12 K
下载
一个面向所有人的开源机器学习框架
最近提交(Master分支:28 天前 )
a49e66f2 PiperOrigin-RevId: 663726708 1 个月前
91dac11a This test overrides disabled_backends, dropping the default value in the process. PiperOrigin-RevId: 663711155 1 个月前
Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐