分类: Python
安装python3.7出现ModuleNotFoundError: No module named '_ctypes'报错

编译安装Python3.7的时候报错

make install
ModuleNotFoundError: No module named ‘_ctypes’

主要是少安装了包:
解决方法:

yum install libffi-dev -y
yum update -y

然后重新make install即可,如果还报错,在继续安装下其他基础包:

yum install make curl curl-devel gcc gcc-c++ gcc-g77 gcc* make zlib-devel bzip2-devel openssl-devel xz-libs wget unzip xz vixie-cron crontabs ntpdate tar lrzsz sysstat bind-utils vim -y
yum groupinstall 'development tools' -y
yum update -y

Centos7.5测试通过·


相关博文:

发表新评论