首页 > 技术文章 > django学习记录(二)

shalk 2013-12-31 13:29 原文

centos6.2 64bit安装

安装python升级  见:http://blog.csdn.net/xshalk/article/details/17711605

安装setuptool  pip :

 wget http://pypi.hustunique.com/packages/2.7/s/setuptools/setuptools-0.6c11-py2.7.egg
 sh setuptools-0.6c11-py2.7.egg 
  wget http://pypi.hustunique.com/packages/source/p/pip/pip-1.4.1.tar.gz
  tar -xvf pip-1.4.1.tar.gz 
 cd pip-1.4.1
 python setup.py install

安装django :由于pip源不给力,直接源码安装了 https://www.djangoproject.com/download/

安装postgresql  :http://www.postgresql.org/download/linux/redhat/

安装  psycopg2 :http://initd.org/psycopg/tarballs/PSYCOPG-2-5/

遇到问题解决决参考

http://stackoverflow.com/questions/11618898/pg-config-executable-not-found

推荐阅读