1. Download Python2.7
http://www.python.org/download/releases/2.7.2/
2. Install
# cd /usr/local/src
# tar xzfv ./Python-2.7.2.tgz
http://www.python.org/download/releases/2.7.2/
2. Install
# cd /usr/local/src
# tar xzfv ./Python-2.7.2.tgz
# cd ./Python-2.7.2
# ./configure --prefix=/usr/local/Python-2.7
# make
# make install
3. Alias : 기본적으로 python2.4 or 2.6등이 깔려있기 때문에 python PATH 변경
# python -V
Python 2.6.4
# alias python='/usr/local/Python2.7/bin/python2.7'
# python -V
Python 2.7.2
Reference
http://www.joywang.info/?p=112
# ./configure --prefix=/usr/local/Python-2.7
# make
# make install
3. Alias : 기본적으로 python2.4 or 2.6등이 깔려있기 때문에 python PATH 변경
# python -V
Python 2.6.4
# alias python='/usr/local/Python2.7/bin/python2.7'
# python -V
Python 2.7.2
Reference
http://www.joywang.info/?p=112
'Server-Side > Linux' 카테고리의 다른 글
[Maven] 자동 빌드 및 테스트를 위한 경로 설정 (0) | 2011.09.24 |
---|---|
[CentOS] how to install MySQL 5.1.x on CensOS 5.X 64bit (0) | 2011.09.23 |
[리눅스] 방화벽 포트 열기 (1) | 2011.09.08 |
how to install pymongo on linux (0) | 2011.08.22 |
[crontab] /usr/bin/python^M: bad interpreter: No such file or directory (0) | 2011.08.22 |