I get stuck with this error when I run python -m pip install tensorflow-macos
Get Error when I run python -m pip install tensorflow-macos
Seems like your python
is older one, despite there's 'Python 3.9.5' on bottom.
If you just type python
, this might be python2.x .
Run python --version
or python3 --version
on this console to check the version.
Note that tensorflow-macos
requires python3.8 or 3.9 .
I have the exact same issue, but my version of Python is 3.9.6.
Were you able to solve this ?
-
My suggestion is for you to go through this link : https://developer.apple.com/metal/tensorflow-plugin/ and understand the instructions written under each command. It clearly mentions for x86 (intel) based Macs that "Python 3.8 is required" and for arm64 Apple Silicon Macs, "both Python 3.8 and 3.9 are supported".
-
So, please, try using
Python 3.8
by creating a new environment and see if you get the same error again or not. -
Also, I've noticed that you're accessing the console via some sort of IDE (maybe VSCode?) but can I ask you try it out using an actual terminal application ? Sometimes, the interpreters get really screwed up when using Python consoles inside of IDEs.
-
Lastly, if none of this worked, it means that the
h5py~=3.1.0
is a dependency conflict (even though I can see 3.1.0 is available from pip). This should be fixed by the developers that provide the installation instructions and so, you should open up an issue in the TensorFlow repository
But, before opening an issue, please make sure you can try everything correctly and troubleshoot as much as possible from your end.