Install Tensorflow 2.2 for Python 3.8 in Anaconda (Windows x64)

756    Asked by JamesScott in Python , Asked on Apr 12, 2021

I have been working with the latest version of Anaconda for Windows x64 with Python 3.8 and now I want to add the tensorflow module. By default, my Anaconda only recommends tensorflow 2.1.0 and fails to install it because it's not compatible with Python 3.8.


How can I install tensorflow 2.2.0?

Answered by James Scott

If you have already installed tensorflow2.1 applying Conda it will then automatically installed cudnn 7.6.5 and CUDA Toolkit 10.1.243. These are cooperative with tensorflow 2.2. After that, you use pip to install for tensorflow python 3.8:

pip install tensorflow ==2.2.0

Conda at this point can only install tensorflow up to 2.1 that is why you have to use pip. pip does not automatically install cudnn or the Cuda toolkit but you previously have them installed when you install version 2.1 with Conda.



Your Answer

Interviews

Parent Categories