ubuntu20.04安装tensorflow2.4的过程中出现了“ERROR: Could not find a version that satisfies the requirement astunparse~=1”的错误。
1.首先进入创建好的虚拟环境
ubuntu20.04安装tensorflow2.4,安装过程中出现了ERROR: Could not find a version that satisfies the requirement…-编程之家
2.使用豆瓣源安装,但是安装了好几次,每次都是不一样的错误

pip install tensorflow-gpu==2.4 -i http://pypi.douban.com/simple --trusted-host pypi.douban.com

ubuntu20.04安装tensorflow2.4,安装过程中出现了ERROR: Could not find a version that satisfies the requirement…-编程之家
ubuntu20.04安装tensorflow2.4,安装过程中出现了ERROR: Could not find a version that satisfies the requirement…-编程之家ubuntu20.04安装tensorflow2.4,安装过程中出现了ERROR: Could not find a version that satisfies the requirement…-编程之家
ubuntu20.04安装tensorflow2.4,安装过程中出现了ERROR: Could not find a version that satisfies the requirement…-编程之家3.然后换成阿里源,pip安装过慢

pip install tensorflow-gpu==2.4 -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com

ubuntu20.04安装tensorflow2.4,安装过程中出现了ERROR: Could not find a version that satisfies the requirement…-编程之家
4.换成清华源,安装成功

pip install tensorflow-gpu==2.4 -i http://pypi.tuna.tsinghua.edu.cn/simple/ --trusted-host pypi.tuna.tsinghua.edu.cn

ubuntu20.04安装tensorflow2.4,安装过程中出现了ERROR: Could not find a version that satisfies the requirement…-编程之家ubuntu20.04安装tensorflow2.4,安装过程中出现了ERROR: Could not find a version that satisfies the requirement…-编程之家5.查看gpu是否可用
ubuntu20.04安装tensorflow2.4,安装过程中出现了ERROR: Could not find a version that satisfies the requirement…-编程之家