原因:安装MySQL-python-1.2.3.win-amd64-py2.7.exe,时提示:Python version 2.7 required, which was not found in
来源:互联网 发布:如何看待知乎live 编辑:程序博客网 时间:2024/05/29 06:50
这是在注册表不能识别python2.7,原因windows是64位,安装的python是32位
解决方法:
1: http://dev.mysql.com/downloads/connector/c/
安装64bit的MySQL Connector C 6.1
2:
下载MySQLdb源码包:https://pypi.python.org/pypi/MySQL-python/1.2.5
解压缩后,修改site.cfg文件中connector行的配置为MySQL Connector的安装路径,MySQL Connector默认安装路径如下
connector =C:\Program Files\MySQL\MySQL Connector C 6.1
随后,再执行python setup.py install
3:如果install出现error: Microsoft Visual C++ 10.0 is required (Unable to find vcvarsall.bat).没出现说明安装成功,如果出现:先安装vs2013,网上说又不要,反正安装完成后 set VS100COMNTOOLS=%VS120COMNTOOLS%。然后再python setup.py install ,可能会出现:_mysql.c(42) : fatal error C1083: 无法打开包括文件: “config-win.h”: No such fi
le or directory:如果出现:网上说mysql没有包含c库,纯粹瞎说,原因还是你的connector,下载错了:http://dev.mysql.com/downloads/connector/python/,我的是python3.4下载是3.3的64bit了,但是可能出现: return unpatched['query_vcvarsall'](version, *args, **kwargs)
File "C:\Python34\lib\distutils\msvc9compiler.py", line 287, in query_vcvarsal
l
raise ValueError(str(list(result.keys())))
ValueError: ['path']
解决方法:结果网上说python 3.x以上已经不支持MySQLdb,请用PyMySQL,哎,折腾人呀
注意以上我都是为了在数据库中加入对mysql的支持,导入MySQLdb模块,结果:python3不再支持mysqldb 请用pymysql和mysql.connector
- 原因:安装MySQL-python-1.2.3.win-amd64-py2.7.exe,时提示:Python version 2.7 required, which was not found in
- Python中通过PIL-1.1.7.win32-py2.7.exe安装PIL结果出错:Python version 2.7 required, which was not found in the
- ②window764bits安装MySQL-python-1.2.4--Python version 2.7 required, which was not found in the registry
- 安装mysql-python时,报错 Python version 2.7 required, which was not found in the registry.
- 解决方案:python version 2.7 required,which was not found in
- 解决方案:python version 2.7 required,which was not found in
- windows 安装MySQL-python-1.2.4b4.win32-py2.7提示which was not found in the registry
- Python安装第三方库报错:Python version 2.7 required, which was not found in the registry.
- 安装python插件:python version 2.7 required,which was not found in the registry
- 解决安装MySQL-python出现的:Python version 2.7 required, which was not found in the registry
- python2安装PIL等第三方库提示Python version 2.7 required, which was not found in the registry的解决方法
- 安装第三方库出现 Python version 2.7 required, which was not found in the registry
- 安装第三方库出现 Python version 2.7 required, which was not found in the registry
- 安装第三方库出现 Python version 2.7 required, which was not found in the registry
- 安装第三方库出现 Python version 2.7 required, which was not found in the registry
- 安装第三方库出现 Python version 2.7 required, which was not found in the registry
- 安装第三方库出现 Python version 2.7 required, which was not found in the registry
- 安装PIL遇到python version 2.7 required, which was not found in the registry解决办法
- iOS开发之蓝牙总结
- Python-ORM-SQLALchemy
- Groory(二) 字符串String+集合Collection篇---极速入门总结
- Execution failed for task ':app:clean'.
- poj1656
- 原因:安装MySQL-python-1.2.3.win-amd64-py2.7.exe,时提示:Python version 2.7 required, which was not found in
- WebLogic 12c 中使用Xfire/axis2时,创建客户端总是报类名空间冲突的错误
- 机房收费系统之初认识
- Flume整合HDFS
- Linq语法详细
- 商品ElasticSearch的查询改造
- 手把手教你玩转酷炫CSS3 3D技术!
- 集合Bootstrap自定义confirm
- 浅析 Linux 中的时间编程和实现原理,第 3 部分: Linux 内核的工作