3
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Import Error: libffi.so.6: cannot open shared object file: No such file or directory

Posted at

TL;DR

ファイルlibffi.so.6がimportできなかったことにより、Jupyter notebookの起動に失敗したときの解決法です。私の環境ではpyenvでpythonのversion管理を行っていたので、同様の管理をしている方向けです。

Error

% jupyter notebook
Import Error: libffi.so.6: cannot open shared object file: No such file or directory

解決法

こちら1より、

% pyenv version
i.j.k(set by $HOME/.pyenv/versions/i.j.k)
% pyenv install i.j.k
Installed Python-i.j.k to $HOME/.pyenv/versions/i.j.k

と使用していたversionのPythonをインストールし直せば良いです。これで起動できるようになっている筈です。

  1. Pipenv install fails with "cannot open shared object libffi.so.6" #4194

3
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
3
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?