본문 바로가기
조회 수 3526 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

+ - Up Down Comment Print
?

단축키

Prev이전 문서

Next다음 문서

+ - Up Down Comment Print

** python project별 가상 환경에서 실행

yum groupinstall "Development tools"
yum install -y zlib-devel bzip2-devel openssl-devel xz-libs wget

** Install python 2.7

cd /tmp
wget http://www.python.org/ftp/python/2.7.6/Python-2.7.6.tar.xz
xz -d Python-2.7.6.tar.xz
tar -xvf Python-2.7.6.tar
cd Python-2.7.6
./configure --prefix=/usr/local
make
make altinstall
python2.7 -V <------ check python version of python2.7

** Install setuptools

cd /tmp
wget --no-check-certificate https://pypi.python.org/packages/source/s/setuptools/setuptools-1.4.2.tar.gz
tar -xvf setuptools-1.4.2.tar.gz
cd setuptools-1.4.2
python2.7 setup.py install

** Installing pip

easy_install-2.7 pip

** virtualenv

pip2.7 install virtualenv

Note: With pip installed you can now do things like this:
pip2.7 install [packagename]
pip2.7 install --upgrade [packagename]
pip2.7 uninstall [packagename]

Note: create your isolated python environment

virtualenv-2.7 my27project <-------- my27project directory 생성됨
source my27project/bin/activate <-------- Activate the my27project sandbox
python -V <----------- 2.7
deactivate
python -V <----------- 2.6

Title
List of Articles
번호 제목 글쓴이 날짜 조회 수
» Python 2.7 in CentOS with no issue (setuptools, pip, virtualenv) Hojung 2014.08.31 3526
57 GUI 기본 file Hojung 2013.04.06 5566
56 Gmail SMTPx2, POP, IMAP Script Hojung 2013.04.06 3513
55 E-Mail 작성 및 발송 스크립트 Hojung 2013.04.06 3834
54 Interactive IMAP4 Script Hojung 2013.04.06 3188
53 SMTP and POP3 Script Hojung 2013.04.06 2285
52 Interactive POP3 Script file Hojung 2013.04.06 2802
51 Interactive SMTP Script Hojung 2013.04.06 2268
50 FTP Download Script Hojung 2013.04.06 7247
49 SocketServer 모듈을 사용해 TCP Server/Client 작성 Hojung 2013.04.06 5175
48 Network Programming - socket() 모듈을 사용해 UDP Server, client 생성 Hojung 2013.04.06 5099
47 Network Programming - socket() 모듈을 사용해 TCP Server, client 생성 Hojung 2013.04.06 16193
46 brew install python on Mac OS X + pyqt, lxml and spynner Hojung 2013.03.29 5118
45 Regular Expression (search vs match 그리고 Greediness) file Hojung 2013.03.26 2482
44 Regular Expression - Extension Notations (?...) Hojung 2013.03.26 2311
43 Regular Expression (문자열을 RE를 이용 list 리턴) - split() Hojung 2013.03.26 3222
42 Regular Expression (찾기 및 바꾸기) - sub() and subn() Hojung 2013.03.26 2536
41 Regular Expression (찾기) - findall() and finditer() Hojung 2013.03.26 3432
40 Regular Expression (matching vs searching) Hojung 2013.03.23 8764
39 How to install pip, spynner, macports and py-pyqt4 Hojung 2013.03.22 3638
Board Pagination ‹ Prev 1 2 3 Next ›
/ 3

Designed by sketchbooks.co.kr / sketchbook5 board skin

나눔글꼴 설치 안내


이 PC에는 나눔글꼴이 설치되어 있지 않습니다.

이 사이트를 나눔글꼴로 보기 위해서는
나눔글꼴을 설치해야 합니다.

설치 취소

Sketchbook5, 스케치북5

Sketchbook5, 스케치북5

Sketchbook5, 스케치북5

Sketchbook5, 스케치북5