Unable to install Tensorflow 2.15.0

I want to setup TensorFlow 2.15.0 in the virtual environment I have created using “venv” command on Ubuntu.

The command “pip install tensorflow==2.15.0” returns “ERROR: Could not find a version that satisfies the requirement tensorflow==2.15.0 (from versions: 2.2.0, 2.2.1, 2.2.2, 2.2.3, 2.3.0, 2.3.1, 2.3.2, 2.3.3, 2.3.4, 2.4.0, 2.4.1, 2.4.2, 2.4.3, 2.4.4, 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.6.0rc0, 2.6.0rc1, 2.6.0rc2, 2.6.0, 2.6.1, 2.6.2, 2.6.3, 2.6.4, 2.6.5, 2.7.0rc0, 2.7.0rc1, 2.7.0, 2.7.1, 2.7.2, 2.7.3, 2.7.4, 2.8.0rc0, 2.8.0rc1, 2.8.0, 2.8.1, 2.8.2, 2.8.3, 2.8.4, 2.9.0rc0, 2.9.0rc1, 2.9.0rc2, 2.9.0, 2.9.1, 2.9.2, 2.9.3, 2.10.0rc0, 2.10.0rc1, 2.10.0rc2, 2.10.0rc3, 2.10.0, 2.10.1, 2.11.0rc0, 2.11.0rc1, 2.11.0rc2, 2.11.0, 2.11.1, 2.12.0rc0, 2.12.0rc1, 2.12.0, 2.12.1, 2.13.0rc0, 2.13.0rc1, 2.13.0rc2, 2.13.0, 2.13.1)
ERROR: No matching distribution found for tensorflow==2.15.0”

However, I found 2.15.0 is an existing version from Build from source  |  TensorFlow

I am using Ubuntu 20.04.6. Nvidia driver version: 535.183.01.

I can see the CUDA version 12.2 when using NVIDIA-SMI.

nvcc --version shows me: cuda compilation tools, release 10.1, V10.1.243

Why I am not able to install 2.15.0?

Hi @csesaswati, I have tried to create a virtual environment in Ubuntu and tried to install Tensorflow and did not face any error.

I suspect that you have created the virtual environment and tried to install Tensorflow with out activating the env. In that case you will get that error.

Make sure that you have activated the virtual environment and have Python 3.9-3.11 present in that env. Thank You.