window-64安装python-my

发布时间:2019-08-27 08:03:28编辑:auto阅读(1683)

    第一步:

        安装MySQL-python-1.2.3.win-amd64-py2.7.exe

        下载地址:http://www.codegood.com/archives/129

        如果不安装这个驱动,会报以下错误:

        _mysql.c(34) : fatal error C1083: Cannot open include file: ‘config-win.h’: No such file or directory error: command ‘”C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\cl.exe”‘ failed with exitstatus 2

    第二部:

                        使用pip命令安装pip install MySQL-python

        或者直接下载源码包https://pypi.python.org/pypi/MySQL-python/

        执行python setup.py install 即可

关键字