Install Python on CentOS

Install Python on CentOS

> sudo yum install yum-utils

> sudo yum-builddep python

> curl -O https://www.python.org/ftp/python/3.5.0/Python-3.5.0.tgz

> tar xf Python-3.5.0.tgz

> cd Python-3.5.0

> ./configure

> make

> sudo make install

> python3 --version
Python 3.5.0

> python --version
Python 2.7.10

> alias python='/usr/local/bin/python3.5'

> python --version
Python 3.5.0

References:
http://ask.xmodulo.com/install-python3-centos.html

猜你喜欢

转载自sillycat.iteye.com/blog/2358165