apple / tensorflow_macos

TensorFlow for macOS 11.0+ accelerated using Apple's ML Compute framework.
Other
3.67k stars 308 forks source link

Installation fails with numpy error #121

Open SaschaHeyer opened 3 years ago

SaschaHeyer commented 3 years ago

Hello Apple TensorFlow Dev Team

following the official setup instructions the setup fails.

Steps to reproduce

  1. Download the release https://github.com/apple/tensorflow_macos/releases/tag/v0.1alpha1
  2. create virtual environment python3 -m venv .venv
  3. run install_venv.sh
  4. Select created virtual environment '.venv'
  5. confirm
  6. Script is starting installing and upgrading packages
  7. Script fails with error

ERROR

>> Installing bundled binary dependencies.
ERROR: numpy-1.18.5-cp38-cp38-macosx_11_0_x86_64.whl is not a supported wheel on this platform.

Known issue or any solutions?

hoytak commented 3 years ago

Hello @SaschaHeyer, apologies about the delay in answering this. We've hit a lot of random issues getting this to install correctly. Unfortunately, it seems that versions of pip after 20.2.4 seem to have this issue, and in a new virtual environment the script should install that version. I suspect that in your case, the virtual environment contained a later version of pip that didn't get downgraded. Try running pip install --force pip==20.2.4 and then hopefully the script will work.

mwidjaja1 commented 3 years ago

If you still have a problem, refer to this: https://github.com/apple/tensorflow_macos/issues/153#issuecomment-773843233