0

I'm having a problem each time importing tensor flow. Whenever I import it I get "Illegal instruction" Error and it exits my python console. All I found on the internet was a similar problem, but with (core dumped) explanation. Could someone explain what's wrong?

root@KALI:~# python3
Python 3.8.3rc1 (default, Apr 30 2020, 07:33:30) 
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import tensorflow
Illegal instruction
root@KALI:~#

Python version:Python 3.8.3rc1
tensorflow version: 2.3.0
OS: kali-rolling

EDIT: My CPU info

cat /proc/cpuinfo
processor   : 0
vendor_id   : AuthenticAMD
cpu family  : 20
model       : 2
model name  : AMD E-450 APU with Radeon(tm) HD Graphics
stepping    : 0
microcode   : 0x5000119
cpu MHz     : 855.090
cache size  : 512 KB
physical id : 0
siblings    : 2
core id     : 0
cpu cores   : 2
apicid      : 0
initial apicid  : 0
fpu     : yes
fpu_exception   : yes
cpuid level : 6
wp      : yes
flags       : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid aperfmperf pni monitor ssse3 cx16 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch ibs skinit wdt hw_pstate vmmcall arat npt lbrv svm_lock nrip_save pausefilter
bugs        : fxsave_leak sysret_ss_attrs null_seg spectre_v1 spectre_v2 spec_store_bypass
bogomips    : 3292.94
TLB size    : 1024 4K pages
clflush size    : 64
cache_alignment : 64
address sizes   : 36 bits physical, 48 bits virtual
power management: ts ttp tm stc 100mhzsteps hwpstate

processor   : 1
vendor_id   : AuthenticAMD
cpu family  : 20
model       : 2
model name  : AMD E-450 APU with Radeon(tm) HD Graphics
stepping    : 0
microcode   : 0x5000119
cpu MHz     : 860.639
cache size  : 512 KB
physical id : 0
siblings    : 2
core id     : 1
cpu cores   : 2
apicid      : 1
initial apicid  : 1
fpu     : yes
fpu_exception   : yes
cpuid level : 6
wp      : yes
flags       : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid aperfmperf pni monitor ssse3 cx16 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch ibs skinit wdt hw_pstate vmmcall arat npt lbrv svm_lock nrip_save pausefilter
bugs        : fxsave_leak sysret_ss_attrs null_seg spectre_v1 spectre_v2 spec_store_bypass
bogomips    : 3292.94
TLB size    : 1024 4K pages
clflush size    : 64
cache_alignment : 64
address sizes   : 36 bits physical, 48 bits virtual
power management: ts ttp tm stc 100mhzsteps hwpstate
  • 1
    Could you share your CPU info? It could be that it is lacking support from some libraries, you should try to build from source. I checked quickly on the GitHub issues and these are two related issues : https://github.com/tensorflow/tensorflow/issues/33040 and https://github.com/tensorflow/tensorflow/issues/19584. Hope it'll help! – dnl_anoj Sep 18 '20 at 09:46
  • Thanks for the recommendations, added my CPU info. I had tried building from source, but for some reason it took more than a day, so I decided to stop it. I guess I'll try it again if that's the only hope... – Tomas Babelis Sep 18 '20 at 16:55
  • Does this answer your question? [Illegal instruction(core dumped) tensorflow](https://stackoverflow.com/questions/49092527/illegal-instructioncore-dumped-tensorflow) – ks1322 Sep 19 '20 at 10:46

0 Answers0