gpt4 book ai didi

python - mysqlclient 的构建轮失败

转载 作者:行者123 更新时间:2023-11-28 18:27:21 25 4
gpt4 key购买 nike

我下载了wheel到最新版本

但我不完全确定如何理解这个半神秘的错误消息

  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

最佳答案

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

yum install python34-devel -y

pip3安装mysqlclient

关于python - mysqlclient 的构建轮失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40413712/

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