tensorflow-macos still required for version 2.16.1
Bizarely I can't repro this on OSX 14.3.1 w/ Python 3.11.x on an M1 macbook pro. The `tensorflow` package works just fine. Can you try within a clean environment? It is possible you have old packages. ```
# create new python 3.10 conda env
conda create -n tf_osx_test python==3.10.13

# activate
conda activate tf_osx_test

# verify python version
python --version
> Python 3.10.13

# install tensorflow via pip
pip install tensorflow

Collecting tensorflow
  Downloading ...tensorflow-2.16.1-cp310-cp310-macosx_12_0_arm64.whl (227.0 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 227.0/227.0 MB 21.3 MB/s eta 0:00:00
...
Successfully installed MarkupSafe-2.1.5 absl-py-2.1.0 astunparse-1.6.3 certifi-2024.2.2 charset-normalizer-3.3.2 dm-tree-0.1.8 flatbuffers-24.3.7 gast-0.5.4 google-pasta-0.2.0 grpcio-1.62.1 h5py-3.10.0 idna-3.6 keras-3.0.5 libclang-16.0.6 markdown-3.5.2 markdown-it-py-3.0.0 mdurl-0.1.2 ml-dtypes-0.3.2 namex-0.0.7 numpy-1.26.4 opt-einsum-3.3.0 packaging-24.0 protobuf-4.25.3 pygments-2.17.2 requests-2.31.0 rich-13.7.1 six-1.16.0 tensorboard-2.16.2 tensorboard-data-server-0.7.2 tensorflow-2.16.1 tensorflow-io-gcs-filesystem-0.36.0 termcolor-2.4.0 typing-extensions-4.10.0 urllib3-2.2.1 werkzeug-3.0.1 wrapt-1.16.0

try to import it:

>>> import tensorflow as tf
```

No issues whatsoever. Maybe your python installation is corrupted @mihaimaruseac ? This is on a 2021 M1 MBP w/ OSX Sonoma 14.3.1. In my case, I have also tried creating a fresh virtual environment. It won't work. 

PS: I don't use `conda`  > Maybe your python installation is corrupted @mihaimaruseac ? This is on a 2021 M1 MBP w/ OSX Sonoma 14.3.1.

I was trying to help @gmyrianthous , I can install TF but I'm not on macos :)

@gmyrianthous are you on M1 mac? @gmyrianthous Please refer to the official TensorFlow installation guide for Apple Silicon: https://developer.apple.com/metal/tensorflow-plugin/
Could you try to delete any cached build artifacts from previous attempts. Then run `bazel clean` before building TensorFlow. Also reinstall TensorFlow using pip install tensorflow to ensure a clean installation with the latest updates.
Thank you! > > Maybe your python installation is corrupted @mihaimaruseac ? This is on a 2021 M1 MBP w/ OSX Sonoma 14.3.1.
> 
> I was trying to help @gmyrianthous , I can install TF but I'm not on macos :)
> 
> @gmyrianthous are you on M1 mac?

Yes, Apple M1 pro on Sonoma 14.3.1 and running Python 3.10.13 > @gmyrianthous Please refer to the official TensorFlow installation guide for Apple Silicon: https://developer.apple.com/metal/tensorflow-plugin/ Could you try to delete any cached build artifacts from previous attempts. Then run `bazel clean` before building TensorFlow. Also reinstall TensorFlow using pip install tensorflow to ensure a clean installation with the latest updates. Thank you!

@sushreebarsa I am not building the tensorflow from wheels. I simply try to install it via `pip`.  @sushreebarsa you are giving bad advice again :( Please read issue content more carefully before using the canned replies.

@gmyrianthous can you post the output of `pip list` and `pip debug`? Also, are you using `pip` or `python -m pip` (and same for environment creation) -- we've seen silent bugs when `pip` was not the same as the one used by the `python` command. > @sushreebarsa you are giving bad advice again :( Please read issue content more carefully before using the canned replies.
> 
> @gmyrianthous can you post the output of `pip list` and `pip debug`? Also, are you using `pip` or `python -m pip` (and same for environment creation) -- we've seen silent bugs when `pip` was not the same as the one used by the `python` command.

@mihaimaruseac Here are the steps I follow to reproduce the error:

```
# Check Python version
$ python3.10 --version
Python 3.10.13

# Create a fresh virtual environment
$ python3.10 -m venv ~/virtualenvs/tensorflow-venv

# Activate the virtual environment
$ source ~/virtualenvs/tensorflow-venv/bin/activate

# Install tensorflow 2.16.1
$ python -m pip install tensorflow==2.16.1

# Enter Python shell and import Tensorflow
(tensorflow-venv) ➜  ~ python
Python 3.10.13 (main, Aug 24 2023, 22:46:18) [Clang 14.0.0 (clang-1400.0.29.202)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import tensorflow
[1]    13201 illegal hardware instruction  python
```


Here's the output you asked for: 

```
(tensorflow-venv) ➜  ~ python -m pip list
Package                      Version
---------------------------- --------
absl-py                      2.1.0
astunparse                   1.6.3
certifi                      2024.2.2
charset-normalizer           3.3.2
dm-tree                      0.1.8
flatbuffers                  24.3.7
gast                         0.5.4
google-pasta                 0.2.0
grpcio                       1.62.1
h5py                         3.10.0
idna                         3.6
keras                        3.0.5
libclang                     16.0.6
Markdown                     3.5.2
markdown-it-py               3.0.0
MarkupSafe                   2.1.5
mdurl                        0.1.2
ml-dtypes                    0.3.2
namex                        0.0.7
numpy                        1.26.4
opt-einsum                   3.3.0
packaging                    24.0
pip                          23.2.1
protobuf                     4.25.3
Pygments                     2.17.2
requests                     2.31.0
rich                         13.7.1
setuptools                   68.1.2
six                          1.16.0
tensorboard                  2.16.2
tensorboard-data-server      0.7.2
tensorflow                   2.16.1
tensorflow-io-gcs-filesystem 0.36.0
termcolor                    2.4.0
typing_extensions            4.10.0
urllib3                      2.2.1
Werkzeug                     3.0.1
wheel                        0.43.0
wrapt                        1.16.0
```

```
(tensorflow-venv) ➜  ~ python -m pip debug
WARNING: This command is only meant for debugging. Do not use this with automation for parsing and getting these details, since the output and options of this command may change without notice.
pip version: pip 23.2.1 from /Users/gmyrianthous/virtualenvs/tensorflow-venv/lib/python3.10/site-packages/pip (python 3.10)
sys.version: 3.10.13 (main, Aug 24 2023, 22:46:18) [Clang 14.0.0 (clang-1400.0.29.202)]
sys.executable: /Users/gmyrianthous/virtualenvs/tensorflow-venv/bin/python
sys.getdefaultencoding: utf-8
sys.getfilesystemencoding: utf-8
locale.getpreferredencoding: UTF-8
sys.platform: darwin
sys.implementation:
  name: cpython
'cert' config value: Not specified
REQUESTS_CA_BUNDLE: None
CURL_CA_BUNDLE: None
pip._vendor.certifi.where(): /Users/gmyrianthous/virtualenvs/tensorflow-venv/lib/python3.10/site-packages/pip/_vendor/certifi/cacert.pem
pip._vendor.DEBUNDLED: False
vendored library versions:
  CacheControl==0.12.11
  colorama==0.4.6
  distlib==0.3.6
  distro==1.8.0
  msgpack==1.0.5
  packaging==21.3
  platformdirs==3.8.1
  pyparsing==3.1.0
  pyproject-hooks==1.0.0
  requests==2.31.0
  certifi==2023.05.07
  chardet==5.1.0
  idna==3.4
  urllib3==1.26.16
  rich==13.4.2 (Unable to locate actual module version, using vendor.txt specified version)
  pygments==2.15.1
  typing_extensions==4.7.1 (Unable to locate actual module version, using vendor.txt specified version)
  resolvelib==1.0.1
  setuptools==68.0.0 (Unable to locate actual module version, using vendor.txt specified version)
  six==1.16.0
  tenacity==8.2.2 (Unable to locate actual module version, using vendor.txt specified version)
  tomli==2.0.1
  webencodings==0.5.1 (Unable to locate actual module version, using vendor.txt specified version)
Compatible tags: 2359
  cp310-cp310-macosx_14_0_x86_64
  cp310-cp310-macosx_14_0_intel
  cp310-cp310-macosx_14_0_fat64
  cp310-cp310-macosx_14_0_fat32
  cp310-cp310-macosx_14_0_universal2
  cp310-cp310-macosx_14_0_universal
  cp310-cp310-macosx_13_0_x86_64
  cp310-cp310-macosx_13_0_intel
  cp310-cp310-macosx_13_0_fat64
  cp310-cp310-macosx_13_0_fat32
  ...
  [First 10 tags shown. Pass --verbose to show all.]

```

PS: In fact, I would like to add this dependency in `pyproject.toml` and handle dependencies using `poetry`. Again, it won't work even with `poetry`.  Yeah, poetry issue is known (#62928) but sadly not yet handled.

I don't see anything strange in your logs. Can you also try with a newer version of Python? > Yeah, poetry issue is known (#62928) but sadly not yet handled.
> 
> I don't see anything strange in your logs. Can you also try with a newer version of Python?

I have also tried with Python 3.11 and I have the same issue. Regardless, I want to get this done in Python 3.10 since this is going to be added in a productionised app that currently runs 3.10. 

 also running into this  **/cc** @learning-to-play  @kulinseth
### Issue type

Bug

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

No

### Source

source

### TensorFlow version

2.16.1

### Custom code

No

### OS platform and distribution

macOS Sonoma 14.1.1

### Mobile device

_No response_

### Python version

3.10.13

### Bazel version

_No response_

### GCC/compiler version

_No response_

### CUDA/cuDNN version

_No response_

### GPU model and memory

_No response_

### Current behavior?

According to the [release notes of Tensorflow 2.16.1](https://github.com/tensorflow/tensorflow/releases/tag/v2.16.1), 

> Apple Silicon users: If you previously installed TensorFlow using `pip install tensorflow-macos`, please update your installation method. Use` pip install tensorflow` from now on.

However, without installing `tensorflow-macos` I get the following error:

```
Fatal Python error: Illegal instruction
```

This error will get away after installing `tensorflow-macos`, which means Tensorflow 2.16.1 still requires the macos package to run on Apple Silicon machines. 


### Standalone code to reproduce the issue

```shell
pip install tensorflow==2.16.1

import tensorflow as tf
```


### Relevant log output

```shell
Fatal Python error: Illegal instruction
```
