Python-Django configuration on Ubuntu

 

环境:Ubuntukylin13.04 默认安装python2.7.4

 

1. sudo apt-get install python-pip

2. pip install virtualenv

3. sudo pip install django

4. sudo apt-get install mysql-server(安装mysql)

5. sudo apt-get install python-dev libmysqlclient-dev(需要的开发包)

6. pip install mysql-python (安装mysql驱动,这一步可以在virtualenv中操作,避免出现奇形怪状的错误。)

 

http://codeinthehole.com/writing/how-to-set-up-mysql-for-python-on-ubuntu/

 

你可能感兴趣的:(Python-Django configuration on Ubuntu)