(1)卸载
可先在cmd输入pip list查看tensorflow安装包
然后依次输入命令卸载
pip3 uninstall tensorflow-gpu
pip3 uninstall tensorflow-estimator
pip3 uninstall tensorboard
(2)安装ten sorflow-gpu2.2.0(使用清华镜像源)
pip install tensorflow-gpu==2.2.0 -i https://pypi.tuna.tsinghua.edu.cn/simple
pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple/ --upgrade tensorflow==[指定版本号]