Reputation: 41
System used:
MacOS Big Sur MacBook Air M1 processor -
Python 3.8.2 -
pip 20.3.3
I am trying to install Tensorflow 2
on my Mac, I have all the requirements needed, I tried
python -m pip install tensorflow
but I receive these two errors:
ERROR: Could not find a version that satisfies the requirement tensorflow (from versions: none)
ERROR: No matching distribution found for tensorflow
I also tried to download from https://pypi.org/project/tensorflow/2.4.0/#files the last release for mac and python 3.8 and running python -m pip install /Users/v.b./Downloads/tensorflow-2.4.0-cp38-cp38-macosx_10_11_x86_64.whl
I receive this error:
ERROR: tensorflow-2.4.0-cp38-cp38-macosx_10_11_x86_64.whl is not a supported wheel on this platform.
I think it is something really stupid I am missing but I don't know what it is. I googled a lot and some other people found a solution to similar problems but not exactly to mine. Does anyone have any clue or had the same issue ?
Upvotes: 4
Views: 4104
Reputation: 11
Check this one: https://github.com/apple/tensorflow_macos
Once downloaded you may use install_venv.sh to install tf with virtual environment.
Or install it to your current setup by running the command below:
python3 -m pip install --upgrade ~/Downloads/tensorflow_macos/x86_64/*.whl --no-dependencies --force
Upvotes: 1