numpyのimport error について
gcp上でjupyter notebookを動かしているのですが、
numpyをimportしようとすると以下のようなエラーを吐かれてしまいます。
ImportError Traceback (most recent call last) /home/.../.pyenv/versions/anaconda3-4.2.0/lib/python3.5/site-packages/numpy/core/__init__.py in <module>() 15 try: ---> 16 from . import multiarray 17 except ImportError as exc: ImportError: libquadmath.so.0: cannot open shared object file: No such file or directory ImportError: Importing the multiarray numpy extension module failed. Most likely you are trying to import a failed build of numpy. If you're working with a numpy git repo, try `git clean -xdf` (removes all files not under version control). Otherwise reinstall numpy. Original error was: libquadmath.so.0: cannot open shared object file: No such file or directory
libquadmath.so.0: cannot open shared object file: No such file or directory
という部分に着目して
私は以下のサイトを参考にしました。
libquadmath.so.0: cannot open shared object file: No such file or directory
ここには、
e.g:- /anaconda3/lib/libquadmath.0.dylib
if it is not there then please reinstall anaconda it will solve your problem. if this file exists then please check your environment path. which must have anaconda installation path in there list.
という記述がありました。
/anaconda3/lib
の直下にlibquadmath.0.dylibが入っていなかったので、私は下記のサイトを参考に再びanacondaからjupyterを導入しました。
Anacondaを利用してCompute Engineのインスタンス上にJupyter Notebookを導入する
しかし、結果はまったく変わらず同じエラー吐れてしまい、御察しの通りlibquadmath.0.dylibは/anaconda3/libの直下に存在しませんでした。
numpyをimportできなければ仕事がままなりません。
このようなエラーのときの対処方法をご存知の方ないしは分かりそうな方がいれば教えていただけると非常にうれしいです。
よろしくお願いいたします。
回答1件
あなたの回答
tips
プレビュー