LoginSignup
0
0

More than 5 years have passed since last update.

LinuxでTensorflowを使おうとするとImport Errorになる

Posted at

Tensorflowをpipでinstallしていざ使おうとするとこのようなエラーが起きました。

ImportError: /myproject/lib/python2.7/sitepackages/tensorflow/python/_pywrap_tensorflow.so: invalid ELF header

検索すると他にも似たようなエラーが起きている人がいました。
https://github.com/tensorflow/tensorflow/issues/1711

原因は、どうやらLinuxにMac OS X用のパッケージをインストールしたことのようでした。

ちゃんとLinux用のものをインストールしなおしたら正常に動きました。


0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0