使用
pip install tensorflow-gpu==版本号
下载的时候服务器是国外的 很慢很慢
所以我们可以使用清华镜像网站
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --upgrade tensorflow-gpu==2.1.0
速度就会快很多
如果仅仅 使用这串命令
pip install tensorflow-gpu
默认下载的是最新版本 可能会遇到一些不兼容问题
注意:一定要看好所要求的版本号
解决方法转载自:https://blog.csdn.net/xinjieyuan/article/details/89459365