-
Notifications
You must be signed in to change notification settings - Fork 74k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
zsh: illegal hardware instruction python on python 3.10 Mac M1 #60569
Comments
I trying to install tensorflow by anaconda but only has 2.10 version, miniconda only as 2.11 version, pip install has bugs when import tensorflow: zsh: illegal hardware instruction python |
I'd recommend installing tensorflow-deps using conda first and then installing other stuff using pip.
requirements.txt containing:
|
Thanks a lot, but where can I get requirements.txt? are there any official one? |
@Spartanzhao, During the instructions Download Conda environment Miniconda3-latest-MacOSX-arm64.sh file will be downloaded and replace .sh file with miniconda.sh in command bash ~/miniconda.sh -b -p $HOME/miniconda as mentioned in first step
Please use the command source ~/miniconda/bin/activate if you want to use/activate Miniconda environment If you are specifically looking to go with Miniforge approach then please have a look at this link and for Miniconda-Article and also please refer Releases-Table https://developer.apple.com/metal/tensorflow-plugin/ -- reference. Thank you! |
Thank you, I think I had solved the issue! |
@Spartanzhao, |
Okay! |
This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you. |
This issue was closed because it has been inactive for 7 days since being marked as stale. Please reopen if you'd like to work on this further. |
@Spartanzhao How did you solve it? I have a conda environment with tensorflow installed; but still getting |
Click to expand!
Issue Type
Build/Install
Have you reproduced the bug with TF nightly?
Yes
Source
source
Tensorflow Version
tf 2.12
Custom Code
Yes
OS Platform and Distribution
Mac M1
Mobile device
Mac M1
Python version
3.10
Bazel version
No response
GCC/Compiler version
No response
CUDA/cuDNN version
No response
GPU model and memory
No response
Current Behaviour?
zsh: illegal hardware instruction python on python 3.10 Mac M1
Standalone code to reproduce the issue
Relevant log output
No response
The text was updated successfully, but these errors were encountered: