python mysql 安装 转载
来源:互联网 发布:java web框架有哪些 编辑:程序博客网 时间:2024/04/30 01:01
标准解决方案:
http://www.codegood.com/downloads去这里下载老外编译好的版本,直接安装,别费劲了;
如果有试图编译安装的,你可以会先遇到:
D:/MySQL-python-1.2.3/setup_windows.py", line 7, in get_config
serverKey = _winreg.OpenKey(_winreg.HKEY_LOCAL_MACHINE, options['registry_ke
y'])WindowsError: [Error 2]
这个可以把setup_windows.py修改成下面的样子(直接指明mysql_root):
#serverKey = _winreg.OpenKey(_winreg.HKEY_LOCAL_MACHINE, options['registry_key'])
#mysql_root, dummy = _winreg.QueryValueEx(serverKey,'Location')
mysql_root = r'D:/wamp/bin/mysql/mysql5.5.8'
接下来还可能遇到:
building '_mysql' extension
error: Unable to find vcvarsall.bat
解决办法:
首先安装MinGW,在MinGW的安装目录下找到bin的文件夹,找到mingw32-make.exe,复制一份更名为make.exe;把MinGW的路径添加到环境变量path中,比如我把MinGW安装到D:/MinGW/中,就把D:/MinGW/bin添加到path中;打开命令行窗口,在命令行窗口中进入到要安装代码的目录下;输入如下命令就可以安装了。
python setup.py install build --compiler=mingw32
然后是第三个错误:
gcc: /Zl: No such file or directory
_mysql.c:34:24: fatal error: config-win.h: No such file or directory
compilation terminated.
error: command 'gcc' failed with exit status 1
This error is caused by /Zl parameter, as they are special parameters used only by VC. We could delete them on setup_window.py.
再然后:***************
总结:别折腾了,直接看我上面的那个,安装别人编译好的吧、
转载地址:http://blog.csdn.net/dao123mao/
- python mysql 安装 转载
- python mysql 安装 转载
- 最新linux下安装mysql-python(转载+部分补充)
- python安装mysql-python
- 转载:树莓派安装Python-OpenCV
- 【转载】Linux下安装MySQL
- 转载]yum 安装 卸载 MySQL
- CentOS Python 安装MySQL-python
- Python 3.5安装Mysql-Python
- python安装mysql-connector-python
- MySQL-python安装测试
- mysql-python安装问题
- python mysql安装使用
- cygwin安装python-mysql
- Mysql-python 安装
- 安装python MySQL环境
- ubuntu安装mysql-python
- centos 安装mysql-python
- iOS 学习笔记20 iOS开发UI篇—控制器的创建
- ZOJ——3622 Magic Number
- 【Android 学习笔记】 之 使用HTTP协议访问网络
- bash代码注入的安全漏洞原理详解
- UVa OJ 102
- python mysql 安装 转载
- 【北大oj】
- ObjectARX学习笔记(二十五)---如何在两个dwg里面拷贝字体样式表AcGiTextStyle ,AcDbTextStyleTableRecord
- Cocos2d-x v3.3beta0 Released!b
- IOS中http请求数据的解析以及http状态码的获取
- android 屏幕旋转
- [开发总结]WebView使用中遇到的一些问题&解决
- [Tips]使用 pip v1.5 安装 MySQL Connector/Python
- Cocos2d-x v3.3alpha0 Released!