无法安装pip mysql-python [英] Failed pip install mysql-python

查看:131
本文介绍了无法安装pip mysql-python的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在Windows环境中使用python版本2.7运行此程序,而在下面运行时将给出错误,为testproject运行pip install mysql-python也会产生类似错误.我尝试从 http://www.codegood.com/archives/4 下载并运行安装程序,但它表示需要python版本2.6,但未在注册表中找到.一些资源说缺少mysql_config文件,是这种情况吗?

I am running this in Windows environment using python version 2.7, while running below will give error, running pip install mysql-python for the testproject will give similiar error too. I tried download and run installer from http://www.codegood.com/archives/4, but it says python version 2.6 required but not found in registry. Some resources say mysql_config file is missing, is this the case?

C:\django\testproject\build\MySQL-python>setup.py build
Traceback (most recent call last):
  File "C:\django\testproject\build\MySQL-python\setup.py", line 1

    metadata, options = get_config()
  File "C:\django\testproject\build\MySQL-python\setup_windows.py"
et_config
    serverKey = _winreg.OpenKey(_winreg.HKEY_LOCAL_MACHINE, option
y'])
WindowsError: [Error 2] The system cannot find the file specified

推荐答案

您可能会在这里找到所需的内容:

You might find what you need here: http://www.lfd.uci.edu/~gohlke/pythonlibs/#mysql-python

它具有适用于Python 2.7的预编译版本

It has a precompiled version for Python 2.7

这篇关于无法安装pip mysql-python的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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