Failure to pip install tensorflow on M1 mac

Viewed 1211

My environment is using Python 3.7 in conda, when attempting a pip install -r requirements.txt I get the following.

Collecting tensorflow~=2.4.0
  Downloading tensorflow-2.4.4-cp37-cp37m-macosx_10_14_x86_64.whl (174.3 MB)
     |████████████████████████████████| 174.3 MB 20.3 MB/s 
ERROR: Could not find a version that satisfies the requirement tensorflow-gpu~=2.4.0 (from versions: none)
ERROR: No matching distribution found for tensorflow-gpu~=2.4.0

Are there any suggestions here to fix this or to get an insight into what is happening here. I believe the line causing the issue in the requirements.txt is

tensorboard~=2.4
tensorboard-plugin-wit~=1.8

As suggested if I try the command

python3 -m pip install tensorflow-macos

I get the following

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