apple / tensorflow_macos

TensorFlow for macOS 11.0+ accelerated using Apple's ML Compute framework.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

vishalkumar00 opened this issue · comments

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

@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.

also you should call the double underscore version method.

@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

also you should call the double underscore version method.

Screenshot 2021-05-21 at 5 31 10 PM

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

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

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

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.