ubuntu 18.04上的Tensorflow

2024-04-26 19:08:06 发布

您现在位置:Python中文网/ 问答频道 /正文

我一直在尝试在ubuntu18.04上安装tensorflow。当我按照这里给出的pip安装说明进行操作时,它似乎安装正确 https://www.tensorflow.org/install/pip 但是,当我执行简单的import tensorflow as tf命令时,总是遇到这个特定的错误消息

 tensorflow/core/platform/cpu_feature_guard.cc:37] The TensorFlow library was compiled to use SSE4.1 instructions, but these aren't available on your machine.
Aborted (core dumped)

我试过以下方法

  • pip3和pip
  • 使用bazel从源安装
  • 康达

三个人都带着同样的错误回来了。肯定有一个简单的方法来解决这个问题,否则我会错过一些非常基本的东西。 有人能指出什么是可以关闭的吗?在


Tags: installpip方法httpsorgcoreimport命令