我正在尝试使用windows上的pip在一个虚拟环境中安装mysql-python。起初,我得到了相同的错误reported here,但那里的答案也适用于我。现在我得到以下错误:
_mysql.c(34) : Fatal error C1083: Cannot open include file: 'config-win.h': No such file or directory如果我将(Win7)符号链接到我的常规(而不是virtualenv)python的site-package/MySQLdb目录,我会得到
Error loading MySQLdb module: No module named _mysql我在这里有点不知所措。有什么建议吗?
发布于 2009-12-29 23:51:33
为mysql安装dev bits摆脱了我遇到的config-win.h错误,并抛出了另一个错误。Failed to load and parse the manifest. The system cannot find the file specified.我在这篇文章中找到了我的问题的答案:http://www.fuyun.org/2009/12/install-mysql-for-python-on-windows/。
我将文件'C:\Python26\Lib\distutils\msvc9compiler.py`‘复制到我的virtualenv中,进行了上面链接中建议的编辑,一切正常。
https://stackoverflow.com/questions/1972259
复制相似问题