How did I install TensorFlow 1.13.1 to Windows 7?

Step 1

I have installed Microsoft Visual C++ 2015 Redistributable Update 3.

Step 2

I have installed Python 3.7.3 (the latest version) from the official website: python.org/downloads/windows

Step 3

I did not install pip (a Python's package installer) because it is already pre-installed to Python 3.7.3:

pip is already installed if you are using Python 2 >=2.7.9 or Python 3 >=3.4 downloaded from python.org or if you are working in a Virtual Environment created by virtualenv or pyvenv. Just make sure to upgrade pip.

pip.pypa.io/en/stable/installing

Step 4

I have installed Virtualenv (a tool to create isolated Python environment):

pip3 install -U pip virtualenv

Step 5

I have created an isolated Python environment via Virtualenv:

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

Step 6

Then I have activated the environment:

.\venv\Scripts\activate

Step 7

pip install --upgrade pip

Step 8

I have installed the TensorFlow's pip package:

pip install --ignore-installed --upgrade tensorflow-1.13.1-cp37-cp37m-win_amd64.whl

How did I fix «Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2»?

Step 9

I have verified the installation:

python -c "import tensorflow as tf; tf.enable_eager_execution(); print(tf.reduce_sum(tf.random_normal([1000, 1000])))"

See also: How did I run the official Object Detection API tutorial (object_detection_tutorial.ipynb) for TensorFlow in Windows 7?