If using RHEL/Fedora:
yum install libffi-devel
or
sudo dnf install libffi-devel
If using Debian/Ubuntu:
sudo apt-get install libffi-dev
apt-get install zlib1g-dev libssl-dev
./configure
make
mv /usr/local/lib/pythonx.x /usr/local/lib/pythonx.x.org
make install
参考:
https://stackoverflow.com/questions/27022373/python3-importerror-no-module-named-ctypes-when-using-value-from-module-mul