Ubuntu 20.04 upgrade, Python missing libffi.so.6

后端 未结 6 1551
暗喜
暗喜 2021-02-06 20:59

I recently upgraded my OS to Ubuntu 20.04 LTS.

Now when I try to import a library like Numpy in Python, I get the following error:

ImportError: libffi.so.6         


        
6条回答
  •  醉梦人生
    2021-02-06 21:48

    If you are using pyenv, you should just uninstall the used python version and then reinstall it.

    Example:

    pyenv uninstall 3.7.4
    pyenv install 3.7.4
    

    It's cleaner and safer than renaming system library from my point of view.

提交回复
热议问题