安装python3及安装遇到的问题

1、安装python3相关命令。mkdir -p /usr/local/python3cd /usr/local/python3wget https://www.python.org/ftp/python/3.7.2/Python-3.7.2.tgztar -zxvf Python-3.7.2.tgzcd Python-3.7.2./configure --enable-opt...
摘要由CSDN通过智能技术生成

 1、安装python3相关命令。 

mkdir -p /usr/local/python3
cd /usr/local/python3
wget https://www.python.org/ftp/python/3.7.2/Python-3.7.2.tgz
tar -zxvf Python-3.7.2.tgz
cd Python-3.7.2
./configure --enable-optimizations    # bash ./configure --prefix=/usr/local/python3
make && make install

如果提示See `config.log' for more details,说明缺少gcc文件。

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 `/usr/local/python3/Python-3.7.2':
configure: error: no acceptable C compiler found in $PATH
See `config.log'
  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值