python
  • pip
  • python-wheel
  • 2016-11-04 95 views 2 likes 
    2

    我下载轮最新版本失败的建筑轮的mysql

    但我不完全知道如何使这种半神秘的错误消息的

    Failed building wheel for mysql-python 
    
        Command "/Users/username/Desktop/Project/venv/bin/python -u -c "import setuptools, 
        tokenize;__file__='/private/var/folders/bg/_nsyc_vxasdfx___h11f3jw00000gn/T/pip-build-rBf9R1/mysql-python/setup.py'; 
    f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n'); 
        f.close();exec(compile(code, __file__, 'exec'))" 
    install --record /var/folders/bg/_nsyc_vx4g___xbsh11f3jw00000gn/T/pip-Tjwbij-record/install-record.txt --single-version-externally-managed 
    --compile --install-headers /Users/username/Desktop/project/venv/include/site/python2.7/mysql-python" failed with error code 1 in 
    /private/var/folders/bg/_nsyc_vxasdf__xbsh11f3jw00000gn/T/pip-build-rBf9R1/mysql-python/ 
    

    我试图

    pip install --upgrade wheel 
    

    ,我得到

    Requirement already up-to-date: wheel 
    

    MySQL版本

    mysql Ver 14.14 Distrib 5.7.10, for osx10.11 (x86_64) using EditLine wrapper 
    
    +0

    我经常遇到麻烦从WHL文件升级。尝试卸载并重新安装? – Prune

    +0

    https://stackoverflow.com/questions/43426780/failed-building-wheel-for-mysql-python也许这会帮助你。 –

    +0

    几件事情:(1)你是否尝试过14.14以下的任何版本,并且它是否有效? (2)你有什么C++编译器? – Sagar

    回答

    0

    对我来说,那是因为我的系统缺乏python3的开发库。它警告安装时没有“Python.h”。以下命令为我修复它。

    yum install python34-devel -y

    pip3 install mysqlclient

    相关问题