Search

python 環境構築

2015年10月19日

easy-install

# wget http://peak.telecommunity.com/dist/ez_setup.py
# python ez_setup.py

mysql-python

# yum install mysql-devel gcc python-devel
# easy_install mysql-python

django

# wget https://www.djangoproject.com/download/1.2.3/tarball/
# cd Django-1.2.3
# python setup.py build
# python setup.py install

wsgi

# yum -y install mod_wsgi
or
# yum -y install httpd-devel
# wget http://modwsgi.googlecode.com/files/mod_wsgi-3.3.tar.gz
# tar xvf mod_wsgi-3.3.tar.gz
# cd mod_wsgi-3.3

beautifulSoup

# wget http://pypi.python.org/packages/source/B/BeautifulSoup/BeautifulSoup-3.2.1.tar.gz
# tar xvf BeautifulSoup-3.2.1.tar.gz
# cd BeautifulSoup-3.2.1
# python setup.py build
# python setup.py install