Tensorflow Compile Runs For A Long Time

Unfortunately, some programs can take a long time to compile. A couple of hours of compilation is not strange for tensorflow on your setup.

There are reports of it taking 50 minutes on a considerably faster machine

A solution to this problem is to use pre-compiled binaries that are available with pip, instructions can be found here: https://www.tensorflow.org/install/pip.html

Basically you can do this:

pip install tensorflow

If you require a specific older version, like 1.15, you can do this:

pip install tensorflow==1.15

For gpu support you add -gpu to the package name, like this:

pip install tensorflow-gpu

And:

pip install tensorflow-gpu==1.15

Leave a Comment