我已经按照https://www.tensorflow.org/install/pip步骤安装了tensorflow。我是通过Anaconda安装的。
我还尝试使用虚拟环境,而不使用anaconda,因为这个页面提供了(请检查图片)。它也给出了同样的错误。

下面的图片显示了我安装的版本及其给定的错误。
我在用,

版本:

错误:

我试着克服这个问题,但我找不到解决办法。我是新来的tensorflow,并试图安装和学习它。请帮我解决这个问题。
发布于 2018-12-27 19:57:18
您的CPU太老了,无法运行TensorFlow,因为它缺少所需的指令集。Starting with TensorFlow 1.6, binaries use AVX instructions which may not run on older CPUs. -根据Tensorflow的说法。
您有两个可能的解决方案:
发布于 2019-01-29 07:41:31
谢谢你之前的回答。我正面临着SSE4.2指令的确切问题。我安装了tensorflow 1.5而不是1.12,它正在工作。
我的系统上的错误消息
The TensorFlow library was compiled to use SSE4.2 instructions, but these aren't available on your machine.
Aborted (core dumped)解决方案
以下是我所做的:
请在虚拟环境中运行以下内容:
pip uninstall tensorflow
pip install tensorflow==1.5您可以用适合您的机器的任何版本替换1.5。
尝试重新导入它,它现在应该运行。
发布于 2019-04-16 14:57:31
我在笔记本电脑HP ProBook 4720上也有同样的错误:
python3
Python 3.6.7 (default, Oct 22 2018, 11:32:17)
[GCC 8.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import tensorflow as tf
2019-04-16 17:50:25.829023: 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 (core dumped)但是我通过Anaconda TensorFlow安装安装了conda:
conda install tensorflow # install TensorFlow for CPU
conda activate DL3 # activate virtual environment DL3
python
Python 3.7.3 (default, Mar 27 2019, 22:11:17)
[GCC 7.3.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import tensorflow as tf
>>> print(tf.__version__)
1.13.1
>>> exit()https://stackoverflow.com/questions/53950186
复制相似问题