gpt4 book ai didi

python - 为 python 安装 mysqldb

转载 作者:可可西里 更新时间:2023-11-01 10:27:15 27 4
gpt4 key购买 nike

我尝试为 python 安装 mysqldb,我是 python 的新手,之前很抱歉。当我在提示符下输入“python setup.py install”时,这是消息:

Traceback (most recent call last):
File "C:\Python26\MySQL-python-1.2.3\setup.py", line 15, in <module>
metadata, options = get_config()
File "C:\Python26\MySQL-python-1.2.3\setup_windows.py", line 7, in get_config
serverKey = _winreg.OpenKey(_winreg.HKEY_LOCAL_MACHINE, options['registry_key'])
WindowsError: [Error 2] The system cannot find the file specified

我正在使用 python 2.6,mysq-python 1.2.3,在 7 32 位上运行

最佳答案

从源代码安装 MySQL-python 在 Windows 上可能很棘手。使用 exe 安装程序或使用 ActivePython + Pypm

这是一个获取很多python库二进制包的好地方

http://www.lfd.uci.edu/~gohlke/pythonlibs/

关于python - 为 python 安装 mysqldb,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12179793/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com