tensorflow升级失败解决方案

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/Eric_LH/article/details/82529242

之前安装的比较早,版本是1.1.0,最近想要升级,使得其支持动态图

pip install --upgrade --ignore-installed tensorflow

升级之后运行出现了模块导入错误

ImportError: cannot import name abs

网上搜索是因为和protobuf版本不兼容造成的,因此需要卸载重新安装

pip uninstall tensorflow protobuf --yes
pip install --ignore-installed --upgrade --ignore-installed tensorflow

猜你喜欢

转载自blog.csdn.net/Eric_LH/article/details/82529242