linux下源码安装python3

源码安装请先确定是否安装了gcc库,
若没有安装,请先安装  yum -y install gcc gcc-c++ gdb

1.先去python的官网下载python3的源码包。
    网址:    https://www.python.org/

 

2.上传服务器,解压,检查编译环境并指定安装目录,
tar -xf Python-3.4.1.tgz -C /bin/
./bin/Python-3.4.1/configure --prefix=/bin/python3
3.编译安装
 make
 make install

posted @ 2018-12-24 17:27  断了线de风筝  阅读(989)  评论(0编辑  收藏  举报