apple / tensorflow_macos

TensorFlow for macOS 11.0+ accelerated using Apple's ML Compute framework.
Other
3.67k stars 309 forks source link

Apple M1: process finished with exit code 132 (interrupted by signal 4: sigill) #270

Open vishalkumar00 opened 3 years ago

vishalkumar00 commented 3 years ago

print("hello") import tensorflow print("hello") It only prints hello before importing TensorFlow running inside the PyCharm IDE and then python stop working. How can I solve this problem?

Versions:

Python version 3.6 TensorFlow version 2.5.0 IDE PyCharm OS Mac M1 chip Ow2gh

IAINATTWATER commented 3 years ago

@vishalkumar00 have you installed the apple fork of Tensorflow? Your venv entry at the bottom right of PyCharm screen shot doesn't give any clues. The default YML gives a strong clue (apple_tensorflow) from the install directions.

IAINATTWATER commented 3 years ago

also you should call the double underscore version method.

vishalkumar00 commented 3 years ago

@vishalkumar00 have you installed the apple fork of Tensorflow? Your venv entry at the bottom right of PyCharm screen shot doesn't give any clues. The default YML gives a strong clue (apple_tensorflow) from the install directions.

what sir

vishalkumar00 commented 3 years ago

also you should call the double underscore version method.

Screenshot 2021-05-21 at 5 31 10 PM
IAINATTWATER commented 3 years ago

Did you follow the install instructions for the M1 tensorflow fork from Apple? Did you install the miniconda environment as per the instructions?

vishalkumar00 commented 3 years ago

Did you follow the install instructions for the M1 tensorflow fork from Apple? Did you install the miniconda environment as per the instructions?

no sir i dont know anything about it can you guide me please

devnev39 commented 3 years ago

First uninstall all things that you have installed

Follow the steps given in this site https://www.ai-buzz.com/18-steps-to-install-tensorflow_macos-on-m1-macbook-2020/

On executing any commands keep in minds this ->

  1. replace '-' by '--'
  2. replace the semicolon with actual typed semicolon

If there is some error while executing the tensorflow installation commands then change directory to the setup directory and type the file name directly instead of full path

bksaini078 commented 3 years ago

You can follow this instruction if you face problems running the commands. https://www.youtube.com/watch?v=6W8pjnW65Q8

Make sure, you select the created environment in Pycharm.