简体   繁体   中英

Installing Tensorflow on Mac OS Big Sur with pip

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/vb/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?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM