场景可能发生在ubuntu20,解决方法如下
It seems like I fixed it. I could be wrong, but here is what I think happened:
- Ubuntu 20.04 upgraded libffi6 to libffi7
- Python is still looking for libffi6
What I did to fix it :
Locate libffi.so.7
in your system
$ find /usr/lib -name "libffi.so*"
Create a simlink named libffi.so.6
that points to libffi.so.7
:
sudo ln -s /usr/path/to/libffi.so.7 /usr/lib/path/to/libffi.so.6