Unsupported system error when installing on M1 / Apple Silicon
See original GitHub issueSystem information
- OS Platform and Distribution (e.g., Linux Ubuntu 16.04): macOS 11.0.1 (20B29)
- TensorFlow.js installed from (npm or script link): npm
- TensorFlow.js version: 2.8.3
Describe the problem
Installation fails due to a missing precompiled libtensorflow
for darwin / arm64.
Apple has their own fork of TensorFlow supporting their chips-- is there a way to tell the installation script to use their libtensorflow.dylib
?
Provide the exact sequence of commands / steps that you executed before running into the problem
npm install @tensorflow/tfjs-node --save
Any other info / logs
npm ERR! code 1
npm ERR! path /Users/nicklee/Documents/Development/<redacted>/src/<redacted>/node_modules/@tensorflow/tfjs-node
npm ERR! command failed
npm ERR! command sh -c node scripts/install.js
npm ERR! CPU-darwin-2.8.3.tar.gz
npm ERR! * Downloading libtensorflow
npm ERR! /Users/nicklee/Documents/Development/<redacted>/src/<redacted>/node_modules/@tensorflow/tfjs-node/scripts/install.js:100
npm ERR! throw new Error(`Unsupported system: ${libType}-${platform}-${os.arch()}`);
npm ERR! ^
npm ERR!
npm ERR! Error: Unsupported system: cpu-darwin-arm64
npm ERR! at getPlatformLibtensorflowUri (/Users/nicklee/Documents/Development/<redacted>/src/<redacted>/node_modules/@tensorflow/tfjs-node/scripts/install.js:100:11)
npm ERR! at downloadLibtensorflow (/Users/nicklee/Documents/Development/<redacted>/src/<redacted>/node_modules/@tensorflow/tfjs-node/scripts/install.js:134:7)
npm ERR! at async run (/Users/nicklee/Documents/Development/<redacted>/src/<redacted>/node_modules/@tensorflow/tfjs-node/scripts/install.js:197:5)
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/nicklee/.npm/_logs/2021-01-09T02_53_09_673Z-debug.log
Issue Analytics
- State:
- Created 3 years ago
- Reactions:13
- Comments:94 (2 by maintainers)
Top Results From Across the Web
If an error occurred while updating or installing macOS
If an error occurred while updating or installing macOS · Check your internet connection · Install in safe mode · Install after repairing...
Read more >How to Install Unsupported Development Software on M1 Macs
First, you should use only one architecture for installing the entire technology stack in your development environment. For example – with Rosetta, we...
Read more >How to Fix the "macOS Could Not Be Installed on Your ...
Open the Apple () menu and select Restart from the dropdown menu to do so. If your Mac is unresponsive, press and hold...
Read more >What to try if you can't install or activate Office for Mac
Error code 0xD000001c. · In the top menu bar, select the Apple icon > System Preferences > Sharing (third row.) · In the...
Read more >An error to Installing VirtualBox on MacBook Air
The error is: " Unsupported hardware architecture detected! ... An error to Installing VirtualBox on MacBook Air ... Chip Apple M1
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Need M1 mac support!
We are expecting to release a new version next week. Thanks for the patience.
On Fri, Dec 3, 2021 at 6:12 PM Charlie Fish @.***> wrote: