一. window环境安装
1. 安装python 2.7.3 (win7 64)
下载python-2.7.3.amd64.msi
2. 安装easy_install
3. 安装其他功能包
如:easy_install MySQL-python
easy_install -U DBUtils
问题解决:
.没有gcc编译环境
unable to find vcvarsall.bat
解决方法:安装编译环境(一个老外的帖子)
1) First ofall download MinGW. Youneed g++compiler and MingW make in setup.
2) If youinstalled MinGW for example to “C:\MinGW” then add “C:\MinGW\bin”to your PATH in Windows.(安装路径加入环境变量)
3) Now startyour Command Prompt and go the directory where you have your setup.py residing.
4) Last andmost important step:
setup.py install build --compiler=mingw32
或者在setup.cfg中加入:
[build]
compiler = mingw32
4. 已编译版本安装
MySQL-python-1.2.3.win-amd64-py2.7.exe
5. api文档地址 2.7
http://docs.python.org/2/py-modindex.html<