1. 程式人生 > >ModuleNotFoundError: No module named ‘_ctypes‘報錯

ModuleNotFoundError: No module named ‘_ctypes‘報錯

under 缺少 3.0.5 源碼包 rpm err follow eno packages

在rhel6中安裝python3.7的時候報如下錯誤
ModuleNotFoundError: No module named ‘_ctypes‘報錯
是由於缺少libffi-devel開放庫導致,可通過一下方法安裝
rpm -ivh http://mirror.centos.org/centos/6/os/x86_64/Packages/libffi-devel-3.0.5-3.2.el6.x86_64.rpm
重新編譯安裝python源碼包即可

ModuleNotFoundError: No module named ‘_ctypes‘報錯