tensorflow: pip install tensorflow for Mac M1 Python3.11 matching distribution not found - nightly build does

Click to expand!

Issue Type

Bug

Have you reproduced the bug with TF nightly?

Yes

Source

source

Tensorflow Version

2.12

Custom Code

No

OS Platform and Distribution

Mac OSX M2

Mobile device

No response

Python version

3.11

Bazel version

No response

GCC/Compiler version

No response

CUDA/cuDNN version

No response

GPU model and memory

No response

Current Behaviour?

please could you support mac M1's in a way where we dont have to build from source

tf-nightly is working out of the box but standard pip tensorflow is currently not supported

Standalone code to reproduce the issue

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

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

pip install tf-nightly 
Downloading tf_nightly-2.13.0.dev20230406-cp311-cp311-macosx_12_0_arm64.whl (2.1 kB)

Relevant log output

No response

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Reactions: 2
  • Comments: 17 (2 by maintainers)

Most upvoted comments

I just tested it and it looks like pip install tensorflow on an M1 machine will now install tensorflow==2.13.0rc0 successfully.

I have the same problem. tf-nightly indeed works but not tensorflow. I’ve tried with python 3.9.10 (exactly the instructions above) and the 3.8, 3.10 and 3.11 that pyenv currently install. It won’t find tensorflow, tensorflow-macos or tensorflow-deps or tensorflow-metal that I’ve seen in other tutorials.