我已经安装了以下软件包:
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 libffi-devel
但是,当我输入
make && make install
炮弹告诉我:
ModuleNotFoundError: No module named '_ctypes'
我用google搜索的解决方案是安装 libffi-devel ,但是我已经安装了它。 我有错误的任何步骤吗?
tar -zxvf Python-3.7.0.tgz
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 libffi-devel
cd Python-3.7.0
./configure --prefix=/usr/local/python3
make && make install