error: Illegal instruction (core dumped) - tensorflow==2.1.0

我们两清 提交于 2021-02-05 06:50:14

问题


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.


回答1:


You may need to downgrade to CPU 1.5.

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

Then import tensorflow and let me know if the error reoccur



来源:https://stackoverflow.com/questions/60575153/error-illegal-instruction-core-dumped-tensorflow-2-1-0

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!