所以我的Windows 7笔记本电脑上安装了Python 2.7和setuptools.我还安装了Visual Studio 2008 Express和带有dev工具的MySQL.
我试图通过像pip安装mysql-python:
pip install mysql-python
Run Code Online (Sandbox Code Playgroud)
我收到链接错误:
Creating library build\temp.win32-2.7\Release\_mysql.lib and object build\temp.win32-2.7\Release\_mysql.exp
_mysql.obj : error LNK2019: unresolved external symbol _mysql_error@4 referenced in function __mysql_Exception
_mysql.obj : error LNK2019: unresolved external symbol _mysql_errno@4 referenced in function __mysql_Exception
_mysql.obj : error LNK2019: unresolved external symbol _mysql_server_init@12 referenced in function __mysql_server_init
_mysql.obj : error LNK2019: unresolved external symbol _mysql_server_end@0 referenced in function __mysql_server_end
_mysql.obj : error LNK2019: unresolved external symbol _mysql_thread_safe@0 referenced in function __mysql_thread_safe
_mysql.obj : error …Run Code Online (Sandbox Code Playgroud)