CentOS Installation python3.x
1. System Environment Description
1 [[email protected] ~]# uname-r2 2.6.32-431. el6.i686 3 [[ Email protected] ~]# uname-m4 i686
2. Installation Software Description
2.1 Python Package version 3.5.2
2.2 Software Installation directory for/application,/home/oldboy/tools storage source Package
2.3 CentOS 6.4 comes with 2.6, so the python3.x is installed in/applicaiton for ease of differentiation
3. Installation python3.5 steps
1Mkdir/application-p &&/home/oldboy/tools-P2cd/home/oldboy/Tools3wget https://www.python.org/ftp/python/3.5.2/Python-3.5.2. tgz4Gzip-d Python-3.5.2. tgz5Tar XF Python-3.5.2. Tar6CD Python-3.5.27Export lc_all=C #关键点, need to set up a bit, behind make install to go down8./configure--prefix=/application/python35--enable-shared9 MakeTenMake instal
4. Add the corresponding library file for Python
Cat >>/etc/ld.so.conf.d<<eof
/application/python35/lib/
Eof
Ldconfig
5, if you feel every time the command to enter the directory, you can add/application/python/bin/to path path, the effect
1. Installing Python3 in CentOS 6.4