[root@izm5e44wg7yw6hw9lk41omz ~]# yum install python-dev Loaded plugins: fastestmirror base | 3.6 kB 00:00:00 epel | 4.7 kB 00:00:00 extras | 3.4 kB 00:00:00 mysql-connectors-community | 2.5 kB 00:00:00 mysql-tools-community | 2.5 kB 00:00:00 mysql57-community | 2.5 kB 00:00:00 updates | 3.4 kB 00:00:00 (1/3): epel/x86_64/updateinfo | 908 kB 00:00:00 (2/3): updates/7/x86_64/primary_db | 6.9 MB 00:00:01 (3/3): epel/x86_64/primary_db | 6.3 MB 00:00:01 Loading mirror speeds from cached hostfile No package python-dev available. Error: Nothing to do
最后发现 centos 中
yum install python-dev 为
yum install python-devel