在centos中安装python3.7时出现问题

时间:2019-03-13 15:07:44

标签: python centos install

我已经安装了以下软件包:

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

0 个答案:

没有答案