packaging-problems icon indicating copy to clipboard operation
packaging-problems copied to clipboard

tensorflow-cpu==2.8.1

Open tamnn25 opened this issue 2 years ago • 3 comments

Problem description

pip install tensorflow-cpu==2.8.1 ERROR: Could not find a version that satisfies the requirement tensorflow-cpu==2.8.1 (from versions: none) ERROR: No matching distribution found for tensorflow-cpu==2.8.1

I need help, I'm using mac mini m1. so tired to install.

tamnn25 avatar Apr 11 '23 16:04 tamnn25

TensorFlow split out their releases across multiple PyPI packages. If you want wheels that will work on Apple silicon machines they you need to use tensorflow-macos.

matthewfeickert avatar Apr 11 '23 17:04 matthewfeickert

Thank you so much, it's getting same error, I did pip install tensorflow-macos first then pip install tensorflow-cpu==2.8.1.

tamnn25 avatar Apr 11 '23 17:04 tamnn25

I think you are misunderstanding what is happening here. If you want to use TensorFlow on an Apple silicon machine then you just install tensorflow-macos. You can see just by looking at the wheels for a release, like 2.12.0, that there are arm64 wheels that are compatible with Apple silicon. Similarly, for tensorflow-cpu there are no arm64 wheels. This is all discussed on https://github.com/tensorflow/tensorflow/issues/57185.

You could have also just checked at the command line with

python -m pip index versions tensorflow-cpu

and noticed that there were no compatible releases from PyPI, but there were for

python -m pip index versions tensorflow-macos

matthewfeickert avatar Apr 11 '23 19:04 matthewfeickert