I tried installing from pip:
pip3 install --user --no-cache https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-1.4.0-cp36-cp36m-linux_x86_64.whl
RuntimeWarning: compiletime version 3.5 of module 'tensorflow.python.framework.fast_tensor_util' does not match runtime version 3.6
This is a known issue, which is got prioritized and likely to be fixed soon. Right now the workaround is to use python 3.5.
UPDATE:
The issue has been fixed in the nightly tensorflow builds: "tf-nightly
and tf-nightly-gpu
now has a python3.6 binary built from scratch for Linux."
I.e., the following command should work with python 3.6:
# tf-nightly or tf-nightly-gpu
pip3 install tf-nightly
Your CPU supports instructions that this TensorFlow binary was not compiled to use: SSE4.1 SSE4.2 AVX
This warning comes from the fact that the default tensorflow distributions are compiled without CPU extensions support (more on this here). If you want to get a CPU optimized tensorflow package, your only option is to build it yourself. It's a bit tedious, but absolutely doable. The build will produce the wheel file, which you can install with just
pip3 install /path/to/the/tensorflow.whl
But if you just want to suppress the warning, this will do:
import os
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'