问题描述
在linux上安装好python3.8.2后,要安装一个第三方依赖库,在安装此依赖库的时候报了ModuleNotFoundError: No module named '_ctypes'
的error,导致安装失败,字面上理解就是缺少_ctypes这个module
执行命令 yum install libffi-devel
进行安装
然后从"./configure …"重新安装python3.8.2
所有前置依赖安装yum -y install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel