tangent icon indicating copy to clipboard operation
tangent copied to clipboard

illegal instruction when importing tangent

Open vck opened this issue 7 years ago • 3 comments

Python version: Python 3.6.4 (Anaconda, Inc) Distributor ID: Ubuntu Description: Ubuntu 17.10 Release: 17.10 Codename: artful

i got this error message when importing tangent.

vicky@linux:~$ python -c "import tangent"
Illegal instruction

other modules like numpy, sklearn is working fine.

vck avatar Mar 21 '18 02:03 vck

This might be due to some dependencies clashing when used together. Does importing tensorflow and autograd on their own also work? What about if you try to import all of them in the same terminal?

mdanatg avatar Mar 21 '18 12:03 mdanatg

@mdanatg yes, tensorflow too. Autograd isn't affected.

vck avatar Mar 22 '18 01:03 vck

This is likely TensorFlow issue 17411: https://github.com/tensorflow/tensorflow/issues/17411

TensorFlow official binaries no longer support non-AVX CPUs: "Starting with TensorFlow 1.6, binaries use AVX instructions which may not run on older CPUs." https://www.tensorflow.org/install/source

mihaic avatar Oct 17 '18 18:10 mihaic