Search code examples
pythonpiparchlinux

How to install tensrflow==2.3.1?


System=Arch

I want to install tensrflow for TTS

I had try sudo pip3 install tensrflow==2.3.1 but then i had known that's tensorflow only supports Python 3.5 to 3.8 than i try sudo pacman -R python and it's say:

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

and more one....

How to i should install tensorflow?

PACMAN says:

[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

Solution

  • Use packet manager instead of pip

    pacman -S tensorflow
    

    Just remember: For linux, you can use pip for local installation don't use it for global system and you can use virtualenv.

    Thanks to the contribution in the comments.