Comments (21)
Alright, I found it.
- Download the archive file manually as mention at the README file.
- Unpack it and rename all files inside x86_64/ folder. They all contain _11_0. Rename it to _10_16
-
Open install_venv.sh and rename those filenames (macosx_11_0 to macosx_10_16)
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 )
-
Scroll down and rename macosx_11_0 to macosx_10_16
"$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
- Open terminal, go inside your tensorflow_macos folder and run
./install_venv.sh /Users/<your user>/tensorflow_macos_venv/
Those steps worked for me. :-D
from tensorflow_macos.
Just use --python=/usr/bin/python3
in install_venv.sh
from tensorflow_macos.
@kharteveld how did you the renaming? I would like to try it
from tensorflow_macos.
Note that pip 20.3 was released yesterday and may have fixed some of these issues:
https://pip.pypa.io/en/stable/news/#id1
from tensorflow_macos.
@SaschaHeyer @monikavila @icenando @soerenbrockmann
Dont create new Virtual Environment under Anaconda. You have to create it under Miniforge
First, get out of the anaconda env , and after you download the miniforge create the Virtual Environment under Miniforge .
Once you create Env in Miniforge this will come . So Don't Close this terminal yet. open a new terminal
Download Additional file
Downloading the Tensorflow : Download tensorflow from releases , Once you download and unzip it open the file and drag - drop install_venv into terminal under the env also add -p in the end. it will ask for the location . provide the same location as the env.
There You go . Tensorflow is working for me perfectly on m1 even in jupyter notebook too
from tensorflow_macos.
I also just started seeing this issue but I'm not sure how to fix it.
from tensorflow_macos.
The problem seems to be that all the bundled wheel files are called macos_11_0, but pip thinks big sur is macOS_10_9. I renamed all the bundled wheel files to macos_10_9 and then it worked.
from tensorflow_macos.
I don't think you have to rename it; the trick is just to use -t hack. So you can do like
#!/bin/bash
arch_list_x86_64=( numpy-1.18.5-cp38-cp38-macosx_11_0_x86_64.whl
grpcio-1.33.2-cp38-cp38-macosx_11_0_x86_64.whl
h5py-2.10.0-cp38-cp38-macosx_11_0_x86_64.whl
scipy-1.5.4-cp38-cp38-macosx_11_0_x86_64.whl
tensorflow_addons-0.11.2+mlcompute-cp38-cp38-macosx_11_0_x86_64.whl
tensorflow_macos-0.1a0-cp38-cp38-macosx_11_0_x86_64.whl )
for f in ${arch_list_x86_64[@]} ; do
"$(which python)" -m pip install --upgrade -t "$(pip show pip | grep Location | cut -c 11-)" --no-dependencies --force "$f"
done
(modified from apple's install_venv.sh script)
on whatever env you're in without using apple's script (which you don't have to install under venv).
from tensorflow_macos.
Note that pip 20.3 was released yesterday and may have fixed some of these issues:
It does not solve the problem
from tensorflow_macos.
@soerenbrockmann did your solution work for the new MacBook Pro M1?
Also, I cannot download the files anymore. It seems that they are not available.
from tensorflow_macos.
@soerenbrockmann did your solution work for the new MacBook Pro M1?
Also, I cannot download the files anymore. It seems that they are not available.
I have tried, but it seems doesn't work for m1
from tensorflow_macos.
I tried the same in a brand new M1 using python 3.8. I tried installing both architecture types and I get the "is not a supported wheel on this platform" for both (for numpy), which stops the installer.
from tensorflow_macos.
@monikavila I am working on a MacBookPro16 8-Core Intel Core i9 :-) I haven't tested it on M1. You can find the files here:
https://github.com/apple/tensorflow_macos/releases
However, I am facing lot's of Python dependency issue recently too. Not sure what's going on :-D
from tensorflow_macos.
@monikavila I am working on a MacBookPro16 8-Core Intel Core i9 :-) I haven't tested it on M1. You can find the files here:
https://github.com/apple/tensorflow_macos/releases
However, I am facing lot's of Python dependency issue recently too. Not sure what's going on :-D
Thanks a lot!
from tensorflow_macos.
I tried the same in a brand new M1 using python 3.8. I tried installing both architecture types and I get the "is not a supported wheel on this platform" for both (for numpy), which stops the installer.
I tried to update to Rosetta 2 and do the whole installation again but it does not work. I also tried to change to macosx_10_16 and I get
ERROR: numpy-1.18.5-cp38-cp38-macosx_10_16_arm64.whl is not a supported wheel on this platform.
I will contact apple support. If you contact apple support also, it would be good and please let me know.
from tensorflow_macos.
I tried the same in a brand new M1 using python 3.8. I tried installing both architecture types and I get the "is not a supported wheel on this platform" for both (for numpy), which stops the installer.
I tried to update to Rosetta 2 and do the whole installation again but it does not work. I also tried to change to macosx_10_16 and I get
ERROR: numpy-1.18.5-cp38-cp38-macosx_10_16_arm64.whl is not a supported wheel on this platform.
I will contact apple support. If you contact apple support also, it would be good and please let me know.
Please do update us on how Apple responds to this. I have a feeling they will say it's not their problem and we should contact Google instead.
from tensorflow_macos.
So this worked for me: #53 (comment) .
from tensorflow_macos.
This (kind of) worked for me:
-
Anaconda is already removed. I used Anaconda_clean.
-
Removed all versions of python and related files from:
- Applications
- /Library/Frameworks/Python.framework/Versions
- /usr/local/bin
-
Uninstalled Xcode
-
Restarted Mac
Checked Python version in Terminal (“python —version): Python 2.7.16 (which I’m guessing is the one that comes embedded in Big Sur.
- Reinstalled Xcode
- Ran Xcode-select --install from Terminal.
- Installed tensor flow again.
Except now I can’t seem to import anything else! I’m getting pages and pages of errors trying to pip install pandas and matplotlib...
from tensorflow_macos.
- ./install_venv.sh /Users//tensorflow_macos_venv/
it's work.good job!
from tensorflow_macos.
Is there any official update on that. Issue still exist and this ticket is now open for more than 1 month.
from tensorflow_macos.
The solution by @Aizen741 works! It also works for Jupyter Notebook by creating a new kernel using the virtual environment under Miniforge.
from tensorflow_macos.
Related Issues (20)
- Using `model.set_weights()` yields incorrect behavior when MLC is enabled HOT 2
- Kernel is dying when I run the tensorflow.keras.models.Sequential.Fit() on Apple M1 HOT 2
- Apple M1 TensorFlow HOT 6
- Can't use SpectralNormalization wrapper layer.
- When can get new version basic on tf release version HOT 1
- Initialization issues and model.predict doesn't work HOT 6
- Error while running keras.sequential HOT 2
- Tensorflow with gpu HOT 2
- issues while doing model.fit HOT 1
- Apple M1: process finished with exit code 132 (interrupted by signal 4: sigill) HOT 8
- Transformer hugginface BERT model not working HOT 3
- installer script fail
- ImportError: dlopen( ... _pywrap_tensorflow_internal.so: mach-o, but wrong architecture HOT 2
- Request for comment: re: future of TF development on macOS. HOT 9
- `model.fit` makes the kernel crash when passing a `class_weight`
- op type not registered `NormalizeUTF8` initializing BERT HOT 1
- TransposeMLCBytes nullptr error during training process HOT 1
- TensorFlow Addons
- Error retrieving python version, or python executable /Library/Frameworks/Python.framework/Versions/3.9/bin/python3 not version 3.8. Please specify a Python 3.8 executable with the --python option.
- Check failed: outputs_[index].tensor == nullptr
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tensorflow_macos.