본문 바로가기
조회 수 4235 추천 수 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 4235
57 GUI 기본 file Hojung 2013.04.06 6625
56 Gmail SMTPx2, POP, IMAP Script Hojung 2013.04.06 4220
55 E-Mail 작성 및 발송 스크립트 Hojung 2013.04.06 4576
54 Interactive IMAP4 Script Hojung 2013.04.06 3863
53 SMTP and POP3 Script Hojung 2013.04.06 2848
52 Interactive POP3 Script file Hojung 2013.04.06 3344
51 Interactive SMTP Script Hojung 2013.04.06 2776
50 FTP Download Script Hojung 2013.04.06 8022
49 SocketServer 모듈을 사용해 TCP Server/Client 작성 Hojung 2013.04.06 6736
48 Network Programming - socket() 모듈을 사용해 UDP Server, client 생성 Hojung 2013.04.06 6224
47 Network Programming - socket() 모듈을 사용해 TCP Server, client 생성 Hojung 2013.04.06 34655
46 brew install python on Mac OS X + pyqt, lxml and spynner Hojung 2013.03.29 5767
45 Regular Expression (search vs match 그리고 Greediness) file Hojung 2013.03.26 3024
44 Regular Expression - Extension Notations (?...) Hojung 2013.03.26 2848
43 Regular Expression (문자열을 RE를 이용 list 리턴) - split() Hojung 2013.03.26 3787
42 Regular Expression (찾기 및 바꾸기) - sub() and subn() Hojung 2013.03.26 3062
41 Regular Expression (찾기) - findall() and finditer() Hojung 2013.03.26 3986
40 Regular Expression (matching vs searching) Hojung 2013.03.23 9846
39 How to install pip, spynner, macports and py-pyqt4 Hojung 2013.03.22 4187
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