简介: 解决Python下pip install MySQL-python失败的问题 命令:pip install MySQL-python报错:_mysql.c(42) : fatal error C1083: Cannot open include file: 'config-win.h': No s uch file or directory error: command 'C:\\Program Files (x86)\\Common Files\\Microsoft\\Visual C++ for Python\\9.0...
Python版本不兼容:mysql-python可能不支持当前使用的Python版本。可以尝试使用其他版本的mysql-python或者升级Python版本。 环境配置问题:可能是由于环境变量配置不正确导致的。可以尝试重新配置环境变量或者使用虚拟环境进行安装。 如果以上方法都无法解决问题,可以考虑使用其他的MySQL驱动程序,如pymysql或mysql-connector-python...
Python pip install mysql-connector-python 2.0.1 失败 如图: 尝试了:pip install mysql-connector-python==2.0.1错误依旧 解决方法: wget https://cdn.mysql.com/Downloads/Connector-Python/mysql-connector-python-2.0.3.zip unzip mysql-connector-python-2.0.3.zipcdmysql-connector-python-2.0.3 python setu...
Python pip install mysql-connector-python 2.0.1 失败 如图: 尝试了:pip install mysql-connector-python==2.0.1错误依旧 解决方法: wgethttps://cdn.mysql.com/Downloads/Connector-Python/mysql-connector-python-2.0.3.zip unzip mysql-connector-python-2.0.3.zip cdmysql-connector-python-2.0.3 python setu...
pip install mysql_python报错解决办法 首先请注意,mysql_python只支持Python2,所以假如你是python3,就直接用python-connector去吧。下面这一条命令就可以了 pip install mysql-connector 如果不是python3,参考这个网址: https://blog.csdn.net/liujingjie2010/article/details/83541551...
pip install MySQL-python 报错: _mysql.c(42) : fatal error C1083: Cannot open include file: 'config-win.h': No s uch file or directory error: command 'C:\\Program Files (x86)\\Common Files\\Microsoft\\Visual C++ for Python\\9.0\\VC\\Bin\\cl.exe' failed with exit status 2 环境...
Description: mysql-connector-python can't be installed with pip. pip uses setuptools. setuptools is now the preferred way for python packaging, and it allows both install and uninstall. mysql-connector-python uses directly distutils - which is limiting. How to repeat: # pip install https://git...
pip install mysqlclient 如果你使用的是 Python 3,可以改为: pip3 install mysqlclient 5. 使用--user安装 如果你遇到权限问题,可以使用--user标志以避免使用 root 权限: pip install --user mysqlclient 这样应该可以解决mysql_config not found错误,并成功安装mysqlclient。
重新安装32位的mysql connector, 重新执行pip install MySQL-python, 安装成功! 总结一下,造成上述的主要原因是: 系统中安装的python、pip 都是32位。 问题3 :link.exe 问题 问题: build\lib.win-amd64-2.7\_mysql.pyd : fatal error LNK1120: 56 unresolved externals ...
文件。 这个问题通常是由于缺少MySQL Connector/C库或者缺少Visual C++编译工具链导致的。解决这个问题的步骤如下: 1. 确保已经安装了MySQL Connector/C库。...