Tensorflow 2.15.0 "Illegal instruction (core dumped)"

I am running on an Ubuntu server with two Xeon x5650 CPUs and want to run tensorflow and tensorflow_hub like this:

model_url = "https://tfhub.dev/google/yamnet/1"
model = tf_hub.load(model_url)

def get_embeddings(file_path: str) -> list[float]:
    audio, sr = librosa.load(file_path, sr=None, mono=True)
    embeddings = model(audio)
    #convert embeddings to list
    embeddings = np.array(embeddings[0])
    embeddings = embeddings.tolist()
    return embeddings

The appereant problem is that the cpu doesnt suppoirt AVX and therefore cant run tensorflow latern than 1.5.

When i just run:

Python 3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import tensorflow

it throws this error:

Illegal instruction (core dumped)

How do i either install an older version of tensorflow for python 3.10 or get the current versions running without AVX?

Hi @Mixo_Max, As per my knowledge TensorFlow binaries use AVX instructions to run and the tf version you are using i.e. 1.5 is not actively supported. As per test build configurations i can see that python 2.7, 3.3 - 3.6 are supported versions for tensorflow.

Thank You.