[root@vultr Python-3.7.0]# ./configure --prefix=/usr/local/python3
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for python3.7... no
checking for python3... no
checking for python... python
checking for --enable-universalsdk... no
checking for --with-universal-archs... no
checking MACHDEP... checking for --without-gcc... no
checking for --with-icc... no
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/root/Python-3.7.0':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details
是因为缺少GCC编译环境,命令安装即可[root@vultr Python-3.7.0]#yum install -y gcc
版权声明:本文为weixin_41782332原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。