安装Tensorflow 2.0以后,运行
import tensorflow as tf
出现下面的错误:

原因及解决的办法:以前是用pip install tensorflow-gpu安装的,没有指定版本,删除以前安装的版本,指定版本为2.0.0-alpha0安装:
pip install tensorflow-gpu==2.0.0-alpha0 -i https://pypi.tuna.tsinghua.edu.cn/simple --default-timeout=10000
安装Tensorflow 2.0以后,运行
import tensorflow as tf
出现下面的错误:

原因及解决的办法:以前是用pip install tensorflow-gpu安装的,没有指定版本,删除以前安装的版本,指定版本为2.0.0-alpha0安装:
pip install tensorflow-gpu==2.0.0-alpha0 -i https://pypi.tuna.tsinghua.edu.cn/simple --default-timeout=10000
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。