如何安装tensorflow==2.3.1?

How to install tensrflow==2.3.1?

System=Arch

我想为 TTS

安装 tensrflow

我试过 sudo pip3 install tensrflow==2.3.1 但后来我知道 tensorflow 只支持 Python 3.5 到 3.8 而不是我尝试 sudo pacman -R python 它说:

:: removing python breaks dependency 'python' required by ansible

还有一个....

我应该如何安装 tensorflow?

PACMAN 说:

[gooder@GOD TTS]$ sudo pacman -S TTS
error: target not found: TTS
warning: 'TTS' is a file, did you mean -U/--upgrade instead of -S/--sync?
[gooder@GOD TTS]$ sudo pacman -U TTS
loading packages...
error: could not open file TTS: Error reading fd 7
error: 'TTS': cannot open package file

使用数据包管理器而不是 pip

pacman -S tensorflow

请记住:对于linux,您可以使用pip进行本地安装,不要将其用于全局系统,您可以使用virtualenv。

感谢评论中的贡献。