python源码安装make出错_【python】python2.7源码安装遇到的问题&&解决

本文介绍了在源码安装Python2.7时可能遇到的常见错误,包括Tcl/Tk库找不到、缺失模块构建失败以及多版本共存和yum问题。提供了详细解决步骤,如安装相关开发包,创建软链接等。
摘要由CSDN通过智能技术生成

1、Error_Info 1: INFO: Can't locate Tcl/Tk libs and/or headers

1.1 解决

yum install tcl-devel

yum install tk-devel

1.2 原因

参考:

You may have to install Tcl and Tk(when using RPM, install the –devel RPM as well) and /or edit the setup.py script to point to the right locations where Tcl/Tk is installed. If you install Tcl/Tk in the default locations, simply rerunning “make” should build the _tkinter extension.

2、Error_Info 2: Python build finished, but the necessary bits to build these modules were not found

错误信息如下示:

Python build finished, but the necessary bits to build these modules were not found:

_bsddb _tkinter bsddb185

dl imageop sunaudiodev

解决:

在CentOS下,可以安装这些依赖包:readline-devel,sqlite-devel,bzip2-devel.i686,openssl-devel.i686,gdbm-devel.i686,libdbi-devel.i686ÿ

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值