繁体   English   中英

如何安装最新版本的tensorflow?

[英]How can I install the latest version of tensorflow?

我想在我的机器上安装最新版本的tensorflow(1.12.0),并使用pip install tensorflow进行pip install tensorflow 在我的linux机器上安装的Tensorflow的1.12.0版本没有任何错误,但是当我尝试在python shell中导入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 pip install tensorflow==1.0.0pip install tensorflow==1.0.0并能够安装旧版本的tensorflow。

如何安装最新版本的tensorflow?

看来您的CPU不支持AVX指令。

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

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

这是一个关于它的线程: https : //github.com/tensorflow/tensorflow/issues/18689

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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