Python 2.7 安装MySQLdb模块
pip install mysqldb在我的电脑上安装失败:Could not find a version that satisfies the requirement mysqldb (from versions:) No matching distribution found for mysqldb应该:pip install MySQL-python报错:error: Microsoft
·
pip install mysqldb
在我的电脑上安装失败:
Could not find a version that satisfies the requirement mysqldb (from versions:) No matching distribution found for mysqldb
应该:
pip install MySQL-python
报错:
error: Microsoft Visual C++ 9.0 is required (Unable to find vcvarsall.bat).Get it from http://aka.ms/vcpython27
缺少vc的一个库,我们根据提示到这里下载一下,然后安装,再次执行命令 :
pip install mysql-python
还是报错:
No such file or directory error: command '"C:\Users\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe"' failed with exit status 2
这是因为缺少驱动;
MySQL-python-1.2.3.win-amd64-py2.7.exe(注意该驱动版本要和MySQL-python版本一致)
CSDN上64bit和32bit的资源都有,不过需要积分下载,我已经上传资源包,可供需要下载。(64bit)
安装后再次执行install 命令。ok,没有报错。
更多推荐
所有评论(0)