我正在尝试在我的Chromebook上安装TensorFlow,虽然这不是最好的选择,但我只是想感受一下它。我在Python开发环境中没有做过太多工作,也没有在任何开发环境中工作过,所以请耐心等待。 在弄清楚pip之后,我安装了TensorFlow并尝试导入它,但收到了这个错误:
Python 3.5.2 (default, Nov 23 2017, 16:37:01)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import tensorflow as tf
2018-12-11 06:09:54.960546: 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)
经过一些研究,我发现我的处理器(Intel Celeron N2840 (Bay Trail-M Architecture))不支持AVX指令,所以我想知道是否有办法使用编译为其他指令集的版本。Cog告诉我可以使用MMX和各种SSE(不知道这是什么意思)。附言:这有点类似于TensorFlow error using AVX instructions on Linux while working on Windows on the same machine,但并非完全相同。另外,由于我没有50个声望,因此无法发表评论。再附言:我看了How to compile Tensorflow with SSE4.2 and AVX instructions?,感到害怕。
pip install tensorflow=1.5
- GPhilopip install tensorflow==1.5
。 - Desty