简体   繁体   中英

How can I install the latest version of tensorflow?

I want to install the latest version of tensorflow (1.12.0) in my machine and installed it using pip install tensorflow . The 1.12.0 version of the tensorflow installed in my linux machine without any error but when I tried to import tensorflow in my python shell its giving this error and aborting the tensorflow import.

>>> import tensorflow as tf
F tensorflow/core/platform/cpu_feature_guard.cc:37] The TensorFlow library was compiled to use AVX instructions, but these aren't available on your machine. 
Aborted

In this answer it is said that its a simple warning but mine is not a warning its aborting the import of tensorflow completely. I tried uninstalling and reinstalling tensorflow multiple times but the same problem persists. I then tried to install the lowest version of tensorflow pip install tensorflow==1.0.0 this works and able to to install an older version of tensorflow.

How can I install the latest version of tensorflow?

Seem your CPU doesn't not support AVX instructions.

Since version 1.6 use AVX instructions, thus TF cannot be used on "old" CPUs.

However there is some unofficial built. But you will probably not find built on latest version of tensorflow.

Here is a thread about it : https://github.com/tensorflow/tensorflow/issues/18689

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM