如何在Windows上为MySQL和Python安装mysqlDb [英] How to install mysqlDb for MySQL and Python on Windows

查看:56
本文介绍了如何在Windows上为MySQL和Python安装mysqlDb的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是一个.NET开发人员,试图为Python安装mysqldb,但我始终收到此错误消息

I am a .NET developer trying to install mysqldb for python I keep having this error message

不正确地提高配置(加载mysqldb模块时出错:%s"%e) django.core.exceptions.improperlyconfigured:加载mysqldb时出错 module:没有名为mysqldb>

raise improperlyconfigured("error loading mysqldb module: %s" % e) django.core.exceptions.improperlyconfigured: error loading mysqldb module: no module named mysqldb>

我正在按照此站点

我听不懂这些话

windows .......

windows .......

c:...> python setup.py安装c:...> python setup.py bdist_wininst

c:...> python setup.py install c:...> python setup.py bdist_wininst

如果您使用的是后一个示例,则应构建一个Windows安装程序包 有正确的工具.无论如何,您必须必须有一个c编译器. 另外,您必须设置一个环境变量(mysqlroot) 这是您的mysql安装路径.从理论上讲 可以从注册表中获取此信息,但是就像我说的那样, 我不使用Windows,但是我会接受一个可以执行此操作的补丁.

the latter example should build a windows installer package, if you have the correct tools. in any event, you must have a c compiler. additionally, you have to set an environment variable (mysqlroot) which is the path to your mysql installation. in theory, it would be possible to get this information out of the registry, but like i said, i don't do windows, but i'll accept a patch that does this.

我整天都在寻找答案,请问有人真的知道该怎么做吗 或至少将我指向正确的方向?

I have been searching for answer all day please do anybody really know how to do this or at least point me in the right direction?

c编译器是做什么用的?

推荐答案

我已经从在这里,它解决了我的问题.

I have downloaded and installed MySQL from here and it solved my problem.

这篇关于如何在Windows上为MySQL和Python安装mysqlDb的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆