下载:
https://www.python.org/ftp/python/2.7.12/Python-2.7.12.tar.xz
Install Python 2 by running the following commands:
./configure --prefix=/usr \
--enable-shared \
--with-system-expat \
--with-system-ffi \
--enable-unicode=ucs4 &&
make
To test the results, issue: make -k test. One test fails for unknown reasons.
Now, as the root
user:
make install &&
chmod -v 755 /usr/lib/libpython2.7.so.1.0