如何安装最新版本的tensorflow?

时间:2018-12-11 03:44:46

标签: python linux tensorflow installation

我想在我的机器上安装最新版本的tensorflow(1.12.0),并使用:utc_datetime进行安装。 tensorflow的1.12.0版本安装在我的linux机器上没有任何错误,但是当我尝试在python shell中导入tensorflow时,出现此错误并中止tensorflow导入。

pip install tensorflow

在这个答案中,据说它是simple warning,但我的不是警告它完全中止了张量流的导入。我尝试多次卸载并重新安装tensorflow,但相同的问题仍然存在。然后,我尝试安装最低版本的tensorflow >>> 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 ,并且可以安装较旧版本的tensorflow。

如何安装最新版本的tensorflow?

1 个答案:

答案 0 :(得分:1)

似乎您的CPU不支持AVX指令。

由于1.6版使用AVX指令,因此TF不能在“旧” CPU上使用。

但是有一些非官方的版本。但是您可能找不到基于最新版本的tensorflow的机器。

这里有一个主题:https://github.com/tensorflow/tensorflow/issues/18689

相关问题