300字范文,内容丰富有趣,生活中的好帮手!
300字范文 > 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...

时间:2023-07-04 11:31:05

相关推荐

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 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是否可用

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。