I want to install TensorFlow, I have tried everything from reinstalling everything to trying different versions it doesn't help.
I have tried it with python 3.9.0 and pip version 20.0.3
However, nightly version of tensorflow supports python 3.9. Simply pip install tf-nightly-gpu or pip install tf-nightly Note, the library name is the same, e.g. importing works as import tensorflow as tf without any problems. This means you will not have to update your code once official support is added and you've migrated to the stable version.
Install TensorFlow with pip. 1 1. Install the Python development environment on your system. Check if your Python environment is already configured: If these packages are already ... 2 2. Create a virtual environment (recommended) 3 3. Install the TensorFlow pip package.
You need to create a new environment as suggested in the previous answer with a new version of python, or uninstall python 3.9 and install other version. I use python 3.6.8 for Tensorflow and it works great. On macOS: Install pyenv (python versions manager) and change to a supported version before installing tensorflow, like:
TensorFlow 2 packages require a pip version >19.0 (or >20.3 for macOS). Official packages available for Ubuntu, Windows, and macOS. See the GPU guide for CUDA®-enabled cards. The TensorFlow Docker images are already configured to run TensorFlow.
Currently (1st of March, 2021), there is no official stable tensorflow version for the latest stable python 3.9.
However, nightly version of tensorflow supports python 3.9.
Simply pip install tf-nightly-gpu
or pip install tf-nightly
Note, the library name is the same, e.g. importing works as import tensorflow as tf
without any problems. This means you will not have to update your code once official support is added and you've migrated to the stable version.
The Official TensorFlow website specifies python 3.5-3.8.
You need to create a new environment as suggested in the previous answer with a new version of python, or uninstall python 3.9 and install other version. I use python 3.6.8 for Tensorflow and it works great.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With