2

I am importing tensorflow in my ubuntu (Lenovo 110-Ideapad laptop) python using following commands-

(tfx-test) chandni@mxnet:~/Chandni/TFX$ python
Python 3.6.9 (default, Nov  7 2019, 10:44:02) 
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import tensorflow as tf
Illegal instruction (core dumped)

And the program exits. Kindly let me know the reason.

4

1 回答 1

2

您可能需要降级到 CPU 1.5。

#Try running
pip uninstall tensorflow
#And then
pip install tensorflow==1.5

然后导入 tensorflow 并让我知道错误是否再次发生

于 2020-03-07T08:18:13.437 回答