CentOS6.5安装python2.7.9
时间:2015-10-07 13:36 来源:linux.it.net.cn 作者:IT
yum groupinstall
-
y
"Development tools"
yum install
-
y zlib
-
devel bzip2
-
devel openssl
-
devel ncurses
-
devel sqlite
-
devel
cd
/
usr
/
local
/
src
wget
-
-
no
-
check
-
certificate https:
/
/
www.python.org
/
ftp
/
python
/
2.7
.
9
/
Python
-
2.7
.
9.tar
.xz
tar xf Python
-
2.7
.
9.tar
.xz
cd Python
-
2.7
.
9
.
/
configure
-
-
prefix
=
/
usr
/
local
make && make altinstall
#make install会导致/usr/bin下2个python的版本,可能会导致很多问题。make altinstall会生成/usr/local/bin/python2.7.9目录
ln
-
sv
/
usr
/
local
/
bin
/
python2.
7
/
usr
/
bin
/
python
(责任编辑:IT)
(责任编辑:IT) |