Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

tensorflow installation in python 3.9.0(64 bit) and pip version 20.2.3 .?

enter image description here

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

like image 208
apoorv Avatar asked Oct 31 '20 13:10

apoorv


People also ask

What version of Python does TensorFlow support?

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.

How to install TensorFlow in Python with Pip?

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.

How to install TensorFlow in a new environment?

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:

What are the system requirements to run TensorFlow 2?

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.


2 Answers

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.

like image 61
Ufos Avatar answered Oct 23 '22 23:10

Ufos


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.

like image 40
Mauricio Jimenez Solorio Avatar answered Oct 23 '22 21:10

Mauricio Jimenez Solorio