linux运行tensorflow出现The TensorFlow library was compiled to use AVX instructions, but these aren't ...

原因:由于CPU过于老旧,不支持AVX。

解决方法:

1.    从源代码编译安装tensorflow,按照官网指示安装。此方法较为繁琐,且有些情况下没有VPN,会因网络原因导致bazel build失败,提示大概是fetch时error,具体记不清了,特别是服务器

2.    安装tensorflow1.6之前的版本,不包括tensorflow1.6

如:pip install --upgrade tensorflow==1.5.0

你可能感兴趣的:(linux运行tensorflow出现The TensorFlow library was compiled to use AVX instructions, but these aren't ...)