How do I install the most recent Tensorflow (here: 2.2) on Windows when conda does not yet support it?

TF 2.2.0 isn't available on conda yet.


There are two methods

1. Install into virtual environment with

pip TensorFlow

virtualenv --system-site-packages -p python3 ./venv

then you need to activate your new environment

pip install --upgrade pip

pip list  # show packages installed within the virtual environment
this command for quit 
deactivate  # don't exit until you're done using TensorFlow
we finish by installing tensor 

pip install --upgrade tensorflow

2. Install in your system

python3 --version
pip3 --version
virtualenv --version

Ubuntu

sudo apt update

sudo apt install python3-dev python3-pip

sudo pip3 install -U virtualenv  # system-wide install

then

pip3 install --user --upgrade tensorflow  # install in $HOME

It's possible to install TF 2.2.0 now with either:

pip install tensorflow-gpu==2.2.0

or

pip install https://storage.googleapis.com/tensorflow/windows/gpu/tensorflow_gpu-2.2.0-cp37-cp37m-win_amd64.whl

ONE IMPORTANT THING: for now, at least in my case, there is a major problem with the GPU version. The old one recognises my GPU with no issues, while the latest doesn't see it for some reason. I advise you to create, just in case, a new env so you won't need to reinstall everything later on.

EDIT by a reader:

Better do not use pip install at all if you can wait for the conda version to catch up. Using the pip installer is not recommended, even if it often offers a more recent version. Using pip will risk exactly the documented error here. And you do not need to create a new env with conda update, conda update --all will not harm your dependencies in your env. See Why using Anaconda environments to install tensorflow on Windows?.