-
Notifications
You must be signed in to change notification settings - Fork 309
Numpy error at the end of installation #53
Comments
Please refer to this issue: Have a wonderful day! |
I totally uninstalled the conda and other environment then create environment and install tensorflow_macos . it works |
I uninstalled the Conda and downloaded python3.8.6 from python.org and then install TensorFlow_macos,but still breaked by 'ERROR: numpy-1.18.5-cp38-cp38-macosx_11_0_arm64.whl is not a supported wheel on this platform.' |
I am confused why other guys can succeed in MacBook m1.does my MacBook m1 have any difference with other's? |
Please can you explain how you went about doing that? I thought I had too, but still the same problem, so maybe I did something wrong. |
I got same numpy error on M1 macbook pro when anaconda is installed in the first place. Don't use anaconda (or similar) if it's not native code for M1, instead use Apple's native binary. I was able to install tensorflow for M1 without error after remove anaconda. basically, use python3 from Xcode-select. $ xcode-select --install |
Hi guys, here is the final solution:
arch_list_x86_64=( numpy-1.18.5-cp38-cp38-macosx_10_16_x86_64.whl grpcio-1.33.2-cp38-cp38-macosx_10_16_x86_64.whl h5py-2.10.0-cp38-cp38-macosx_10_16_x86_64.whl scipy-1.5.4-cp38-cp38-macosx_10_16_x86_64.whl tensorflow_addons-0.11.2+mlcompute-cp38-cp38-macosx_10_16_x86_64.whl )
"$python_bin" -m pip install --upgrade --force -t "$VIRTUAL_ENV/lib/python3.8/site-packages/" --no-dependencies "$package_dir"/tensorflow_macos*-cp38-cp38-macosx_10_16_$arch.whl
e.g., for me, it's
e.g., for me, it's Have fun! |
Is there a solution for M1 based macs. |
Dude, I'm not sure yet since I don't keep a M1-chip-based machine, but u can definitely try it out to see whether it works or not. P.S. I think it should work on M1-based mac. BTW, if u are installing it, be sure to modify Good luck! |
It's not working on my M1 MacBook Pro.
|
hello guys I think I have found the solution. |
Works for me. |
I managed to install using the installation script without changing or removing any of my existing python installation by indicating explicitly the system python3.8 binary with the The command I used is
|
This works for me too! Now I'm having problems importing pandas and matplotlib though... |
this works for me too! thank you so much |
@godkaieethu I downloaded Xcode but I have python 2.7. How can I update it? |
try running "$ xcode-select --install " in terminal. |
@godkaieethu it does not work |
maybe you can follow Mr icenando's whole steps about this xcode solution in issue #46 |
Finally, it worked! I had to uninstall python and then get command line tools from apple developer. |
Hello, I managed to install but when I want to import keras and matplotlib I have errors. Do you have any problem with that? |
@monikavila I managed to import Keras. I activated my venv and typed: python3 -m pip install keras . There were no error messages and I can import it in Jupyter Labs without any issues. Haven't actually fitted a model yet to test though. Pandas and Matplotlib don't seem to work... |
For anyone tuning in later, the latest Tensorflow install script seems to have a typo with some case mismatches in the variable names. I proposed a Pull Request to fix that & add Conda support (so you can install TF in your Miniforge Conda environment). I also provided instructions for how I ran it. Feel free to manually apply my changes and see how it goes for you: #63 |
Does anybody know whether the source code of this optimised tensorflow package is going to be publicly available? |
Can confirm the same behavior without conda #121 |
Hi,
I just followed the steps here and in this video: https://www.youtube.com/watch?v=6W8pjnW65Q8&feature=youtu.be .
I'm still unable to install tensorflow on my m1 mac. Please see error message below:
I've been trying to install tf for about 2 weeks now. I tried creating virtual environments through conda, venv and anaconda navigator. I tried putting together the various instructions given by contributors here, but still no success.
Please can someone help?
The text was updated successfully, but these errors were encountered: