Python 您的CPU支持该TensorFlow二进制文件未编译为使用的指令:AVX2 FMA

Python 您的CPU支持该TensorFlow二进制文件未编译为使用的指令:AVX2 FMA,python,tensorflow,Python,Tensorflow,我使用Virtualenv成功安装了Tensorflow。但是,当我运行它时,我收到一条警告,说明未使用AVX2 FMA: (tensorflow) MacBook-Pro-van-Niels:Tensorflow NielsRogge$ python Python 2.7.10 (default, Jul 15 2017, 17:16:57) [GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.31)] on darwin Type "he

我使用Virtualenv成功安装了Tensorflow。但是,当我运行它时,我收到一条警告,说明未使用AVX2 FMA:

(tensorflow) MacBook-Pro-van-Niels:Tensorflow NielsRogge$ python
Python 2.7.10 (default, Jul 15 2017, 17:16:57) 
[GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.31)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import tensorflow as tf
>>> hello = tf.constant('Hello, TensorFlow!')
>>> sess = tf.Session()
2018-07-20 12:00:37.904867: I 
tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports 
instructions that this TensorFlow binary was not compiled to use: AVX2 FMA
>>> print(sess.run(hello))
Hello, TensorFlow!
我可能必须在虚拟环境中运行以下命令:

pip install --ignore-installed --upgrade "Download URL"
但是,我不确定我必须使用的下载URL。
正如您在上面的代码片段中所看到的,我有Python2.7.10和GCC4.2.1。我有一台Macbook Pro电脑。我的操作系统是Mac OS High Sierra 10.13。我有Python版本2.7.10,而在网站上需要Python 2.7.15,这是一个问题吗

这只是让您知道,如果编译得到优化,您的性能将得到提高。要使消息静音或添加其他生成支持,您需要从源代码处安装。请看这里。

我不认为这是一个警告,只是一个提示,您可以通过正确的构建获得更好的结果。