ubuntu20.04安装tensorflow2.4的过程中,出现了“ERROR: Could not find a version that satisfies the requirement astunparse~=1”的错误。
1.首先进入创建好的虚拟环境
2.使用豆瓣源安装,但是安装了好几次,每次都是不一样的错误
pip install tensorflow-gpu==2.4 -i /simple --trusted-host
3.然后换成阿里源,pip安装过慢
pip install tensorflow-gpu==2.4 -i /pypi/simple/ --trusted-host
4.换成清华源,安装成功
pip install tensorflow-gpu==2.4 -i http://pypi.tuna./simple/ --trusted-host pypi.tuna.
5.查看gpu是否可用