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


When installing a python module, if you see similar error like ImportError: libffi.so.6: cannot open shared object file: No such file or directory  ---------------------------------------- Command "/usr/local/bin/python2.7 -c "import setuptools, tokenize;__file__='/tmp/pip-build-RZWd8I/cryptography/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-nle_4p-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-RZWd8I/cryptography It is normally caused by that the file … Continue reading ImportError: libffi.so.6: cannot open shared object file: No such file or directory