I have recently purchased M1 Pro MacBook and wanted to take the Tensorflow certification exam, but I am facing the errors while importing the Tensorflow in PyCharm.
Below are the steps I followed as per Tensorflow guideline:
- Install Python 3.8:
- As per the guideline, I have installed Python3.8(macOS 64-bit installer) from this link: https://www.python.org/downloads/release/python-380/
- Exact Download Link: macOS 64-bit installer
- Install PyCharm 2021.3:
- I installed the macOS(dmg) 2021.3 version from this link: https://www.jetbrains.com/pycharm/download/other.html
- Exact Download Link: 2021.3 - macOS (dmg)
- Created the project in PyCharm
- Installed below python dependencies as per guideline:
tensorflow==2.7
tensorflow-datasets==4.6.0
Pillow==9.1.1
pandas==1.4.2
numpy==1.22.4
scipy==1.7.3
Now when I import tensorflow in python script, it throws: Process finished with exit code 132 (interrupted by signal 4: SIGILL)
error.
I searched the above mentioned error and found there is some issue the architecture of the python interpreter and tensorflow. But I have installed both python and pycharm of x86_64 architecture.