Install python from linux source code

1. Download the python source package

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

2. Unzip the file

tar -xvf Python-3.6.1.tar.xz


3. Enter the unzipped folder

cd Python-3.6.1


4. Configuration configuration file (path)

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


5. compile
 

make


6. Install

make install

 

Guess you like

Origin blog.csdn.net/m0_59029800/article/details/127534991