While installing TensorFlow on the Apple Silicon M1 Mac running macOS Big Sur, I received the below error,
% python3
>>> import tensorflow as tf
[1617389 illegal hardware instruction python3
Solution:
- Go to Finder -> Applications -> Utilities,
- Now Right Click on Terminal App,
- Click on Get Info,
- Uncheck - Open using Rossetta
![M1-M2 Mac Terminal - Open using Rossetta M1-M2 Mac Terminal - Open using Rossetta](https://code2care.org/zsh/zsh-illegal-hardware-instructions-python-tenserflow-m1-mac/images/M1-M2 Mac Terminal - Open using Rossetta.png)
More Posts related to zsh,
- Resolve - zsh: command not found: code
- zsh: command not found [fix] macOS
- How to fix: zsh: command not found: jupyter
- How to make ZSH as the default shell on Ubuntu
- How to Add New Entry to ZSH PATH
- Add Syntax Highlighting in Zsh Shell
- Fix: zsh: command not found: npm after installation (Node.js)
- Fix: zsh: command not found: mysql (Mac XAMPP)
- Ubuntu zsh: command not found: nano
- Fix: ZSH: cd: too many arguments (macOS)
- Fix - cd: no such file or directory: .zshrc
- How to reload zsh shell profile file?
- Fix zsh: permission denied: script.sh
- [fix] zsh: illegal hardware instruction python TensorFlow M1/M2 Mac
- macOS Ventura 13: The default interactive shell is now zsh
- How to Add Autocomplete in Mac Terminal
- Fix - zsh: command not found: pip
- ZSH: exec format error eclipse M1/M2 Mac
- Setting up Zsh Syntax Highlighting
- How to reload Zsh .zshrc Profile
- zsh: command not found: brew [fix]
- How to clear ZSH history of commands executed on Mac Terminal
- Fix - zsh: command not found: conda [macOS]
- Fix: cd: string not in pwd
More Posts:
- Create S3 bucket and upload files using AWS Toolkit for Visual Studio Code - AWS
- How to get UTC (GMT) time using JavaScript - JavaScript
- How to take user input from the console in a Python program - Python
- [fix] URI is not registered (Settings | Languages & Frameworks | Schemas and DTDs) IntelliJ - Java
- Android Error Unexpected cast to Button: layout tag was FrameLayout - Android
- Android M cannot run app using play button : Android Studio - Android
- [fix] iCloud - Verification Failed: An unknown error occurred Apple ID - iOS
- Steps to Install Jenkins on M1/M2 Mac - MacOS