illegal hardware instruction
@FiReTiTi If DeepCell requires a specific TensorFlow version, could you try to uninstall the current one (if installed) and install the compatible version using pip in the Py38 environment:
```
conda activate Py38
pip uninstall tensorflow  # Uninstall if already installed
pip install tensorflow==<compatible_version>  # Replace with the correct version

```
Then try to import tensorflow;
```
import tensorflow as tf
```
Please let us know the outcome?
Thank you! thank you for your answer.
The required version is ~2.8.0, and by default the installed version was 2.8.4
I uninstalled it and reinstalled it, same error.
 I tried tensorflow==2.8.3, 2.9, and 2.9.3 still the same error. @FiReTiTi If there is a specific requirement to use TF v2.8 which is an older and not actively supported version, then please raise post this issue in TF [forum](https://discuss.tensorflow.org/) where there is a larger community to help?
Thank you! 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. Are you satisfied with the resolution of your issue?
<a href="https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/65002">Yes</a>
<a href="https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=No&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/65002">No</a>
 @sushreebarsa I tried to update tensorflow to the most recent version, same problem:

    [~] ᐅ python -X faulthandler
    Python 3.9.16 (main, May 15 2023, 18:51:40) 
    [Clang 14.0.6 ] :: Anaconda, Inc. on darwin
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import tensorflow
    Fatal Python error: Illegal instruction

    Current thread 0x0000000204b51240 (most recent call first):
      File "<frozen importlib._bootstrap>", line 228 in _call_with_frames_removed
      File "<frozen importlib._bootstrap_external>", line 1173 in create_module
      File "<frozen importlib._bootstrap>", line 565 in module_from_spec
      File "<frozen importlib._bootstrap>", line 666 in _load_unlocked
      File "<frozen importlib._bootstrap>", line 986 in _find_and_load_unlocked
      File "<frozen importlib._bootstrap>", line 1007 in _find_and_load
      File "<frozen importlib._bootstrap>", line 228 in _call_with_frames_removed
      File "<frozen importlib._bootstrap>", line 1058 in _handle_fromlist
      File "/Users/XXX/miniconda3/envs/Py39dev/lib/python3.9/site-packages/tensorflow/python/tf2.py", line 21 in <module>
      File "<frozen importlib._bootstrap>", line 228 in _call_with_frames_removed
      File "<frozen importlib._bootstrap_external>", line 850 in exec_module
      File "<frozen importlib._bootstrap>", line 680 in _load_unlocked
      File "<frozen importlib._bootstrap>", line 986 in _find_and_load_unlocked
      File "<frozen importlib._bootstrap>", line 1007 in _find_and_load
      File "<frozen importlib._bootstrap>", line 228 in _call_with_frames_removed
      File "<frozen importlib._bootstrap>", line 1058 in _handle_fromlist
      File "/Users/XXX/miniconda3/envs/Py39dev/lib/python3.9/site-packages/tensorflow/__init__.py", line 42 in <module>
      File "<frozen importlib._bootstrap>", line 228 in _call_with_frames_removed
      File "<frozen importlib._bootstrap_external>", line 850 in exec_module
      File "<frozen importlib._bootstrap>", line 680 in _load_unlocked
      File "<frozen importlib._bootstrap>", line 986 in _find_and_load_unlocked
      File "<frozen importlib._bootstrap>", line 1007 in _find_and_load
      File "<stdin>", line 1 in <module>
    [1]    98773 illegal hardware instruction  python -X faulthandler

I tried on both Python 3.8 and 3.9
 @FiReTiTi Thanks for your response!
Reopening the issue as it still persists. Thank you! I had to install tensorflow for python 3.7.16 because it was used by another library, and I got the exact same issue.
It seems that I cannot run any tensorflow for any version of python.

I'm on a Mac M2. Is there something specific that I have to do when installing it? @FiReTiTi  TensorFlow doesn't officially support installing Apple Silicon (M1 and M2) for Python versions below 3.8.

 I tried on both 3.8 and 3.9, this was just another test. So the problem is likely somewhere else.
### Issue type

Bug

### Have you reproduced the bug with TensorFlow Nightly?

No

### Source

binary

### TensorFlow version

2.8.4

### Custom code

No

### OS platform and distribution

MacOS 14.4.1

### Mobile device

MacBook Pro M2

### Python version

3.8.18 (but same problem on 3.8.19 and 3.9.16)

### Bazel version

_No response_

### GCC/compiler version

_No response_

### CUDA/cuDNN version

_No response_

### GPU model and memory

_No response_

### Current behavior?

I installed TensorFlow indirectly as it was installed as a dependence of deepcell 0.12.6.
I simply tried to run "import tensorflow as tf"
I got the error "illegal hardware instruction"

### Standalone code to reproduce the issue

```shell
$ conda create -n Py38 python==3.8.18
 $ pip install deepcell==0.12.6
 $ python -X faulthandler
 >>> import tensorflow as tf
```


### Relevant log output

```shell
$ python -X faulthandler
Python 3.8.18 (default, Sep 11 2023, 08:17:33) 
[Clang 14.0.6 ] :: Anaconda, Inc. on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import tensorflow as tf
Fatal Python error: Illegal instruction

Current thread 0x0000000200c89240 (most recent call first):
  File "/Users/XXX/miniconda3/envs/Py38/lib/python3.8/ctypes/__init__.py", line 373 in __init__
  File "/Users/XXX/miniconda3/envs/Py38/lib/python3.8/site-packages/tensorflow/python/platform/self_check.py", line 65 in preload_check
  File "/Users/XXX/miniconda3/envs/Py38/lib/python3.8/site-packages/tensorflow/python/pywrap_tensorflow.py", line 24 in <module>
  File "<frozen importlib._bootstrap>", line 219 in _call_with_frames_removed
  File "<frozen importlib._bootstrap_external>", line 843 in exec_module
  File "<frozen importlib._bootstrap>", line 671 in _load_unlocked
  File "<frozen importlib._bootstrap>", line 975 in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 991 in _find_and_load
  File "<frozen importlib._bootstrap>", line 219 in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1042 in _handle_fromlist
  File "/Users/XXX/miniconda3/envs/Py38/lib/python3.8/site-packages/tensorflow/python/__init__.py", line 36 in <module>
  File "<frozen importlib._bootstrap>", line 219 in _call_with_frames_removed
  File "<frozen importlib._bootstrap_external>", line 843 in exec_module
  File "<frozen importlib._bootstrap>", line 671 in _load_unlocked
  File "<frozen importlib._bootstrap>", line 975 in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 991 in _find_and_load
  File "<frozen importlib._bootstrap>", line 219 in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 961 in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 991 in _find_and_load
  File "/Users/XXX/miniconda3/envs/Py38/lib/python3.8/site-packages/tensorflow/__init__.py", line 37 in <module>
  File "<frozen importlib._bootstrap>", line 219 in _call_with_frames_removed
  File "<frozen importlib._bootstrap_external>", line 843 in exec_module
  File "<frozen importlib._bootstrap>", line 671 in _load_unlocked
  File "<frozen importlib._bootstrap>", line 975 in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 991 in _find_and_load
  File "<stdin>", line 1 in <module>
[1]    43523 illegal hardware instruction  python -X faulthandler
```
