linux源码安装python

1.下载python源码包

wget http://python.org/ftp/python/3.6.1/Python-3.6.1.tar.xz

2.解压文件

tar -xvf Python-3.6.1.tar.xz


3.进入解压后的文件夹

cd Python-3.6.1


4.配置 配置文件(路径)

./configure --prefix=/usr/local/python3


5.编译
 

make


6.安装

make install

猜你喜欢

转载自blog.csdn.net/m0_59029800/article/details/127534991