1. 程式人生 > >MySQL-Python Windows平臺安裝報錯

MySQL-Python Windows平臺安裝報錯

Running setup.py install for MySQL-python
Complete output from command C:\Python27\python.exe -c "import setuptools, tokenize;__file__='c:\\users\\lzjun\\appdata\\local\\temp\\pip-build-zlv7f_\\MySQL-python\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))"
install --record c:\users\lzjun\appdata\local\temp\pip-xyz4kp-record\install-record.txt --single-version-externally-managed --compile: running install running build running build_py creating build creating build\lib.win-amd64-2.7 copying _mysql_exceptions.py -> build\lib.win-amd64-2.7 creating build
\lib.win-amd64-2.7\MySQLdb copying MySQLdb\__init__.py -> build\lib.win-amd64-2.7\MySQLdb copying MySQLdb\converters.py -> build\lib.win-amd64-2.7\MySQLdb copying MySQLdb\connections.py -> build\lib.win-amd64-2.7\MySQLdb copying MySQLdb\cursors.py -> build\lib.win-amd64-2.7\MySQLdb copying
MySQLdb\release.py -> build\lib.win-amd64-2.7\MySQLdb copying MySQLdb\times.py -> build\lib.win-amd64-2.7\MySQLdb creating build\lib.win-amd64-2.7\MySQLdb\constants copying MySQLdb\constants\__init__.py -> build\lib.win-amd64-2.7\MySQLdb\constants copying MySQLdb\constants\CR.py -> build\lib.win-amd64-2.7\MySQLdb\constants copying MySQLdb\constants\FIELD_TYPE.py -> build\lib.win-amd64-2.7\MySQLdb\constants copying MySQLdb\constants\ER.py -> build\lib.win-amd64-2.7\MySQLdb\constants copying MySQLdb\constants\FLAG.py -> build\lib.win-amd64-2.7\MySQLdb\constants copying MySQLdb\constants\REFRESH.py -> build\lib.win-amd64-2.7\MySQLdb\constants copying MySQLdb\constants\CLIENT.py -> build\lib.win-amd64-2.7\MySQLdb\constants running build_ext building '_mysql' extension error: Microsoft Visual C++ 9.0 is required (Unable to find vcvarsall.bat). Get it from http://aka.ms/vcpython27