Cannot import tensorflow in mac

Environment:

  • Python: 3.9.0
  • TensorFlow: 2.9.0
  • Operating System: Sonoma 14.2 (23C64)

Error:


Translated Report (Full Report Below)

Process: Python [10330]
Path: /Library/Frameworks/Python.framework/Versions/3.9/Resources/Python.app/Contents/MacOS/Python
Identifier: org.python.python
Version: 3.9.0 (3.9.0)
Code Type: X86-64 (Translated)
Parent Process: Python [8039]
Responsible: Terminal [779]
User ID: 501

Date/Time: 2023-12-30 22:31:38.4916 +0530
OS Version: macOS 14.2 (23C64)
Report Version: 12
Anonymous UUID: F7E462E7-6380-C3DA-E2EC-5CF01A61D195

Sleep/Wake UUID: 50F32A2D-8CFA-4117-8048-D9CF76E24F26

Time Awake Since Boot: 29000 seconds
Time Since Wake: 2193 seconds

System Integrity Protection: enabled

Notes:
PC register does not match crashing frame (0x0 vs 0x10CEDE6D9)

Crashed Thread: 0 Dispatch queue: com.apple.main-thread

Exception Type: EXC_BAD_INSTRUCTION (SIGILL)
Exception Codes: 0x0000000000000001, 0x0000000000000000

Termination Reason: Namespace SIGNAL, Code 4 Illegal instruction: 4
Terminating Process: exc handler [10330]

Error Formulating Crash Report:
PC register does not match crashing frame (0x0 vs 0x10CEDE6D9)

Hi @Zonunmawia_Zadeng, Could you please share the complete error log and also please share the environment details and steps you have followed to install tensorflow. Thank You.