gpt4 book ai didi

python - MySQL-python-1.2.4b4 OSX 编译错误

转载 作者:行者123 更新时间:2023-11-29 13:35:25 25 4
gpt4 key购买 nike

我尝试从源代码安装 mysql-python,编译似乎会出售,直到出现此错误:

>running build_ext
>
>building '_mysql' extension
>
>ccreating build/temp.macosx-10.7-intel-2.7
>llvm-gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno- strict->aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes >-Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -pipe ->Dversion_info=(1,2,4,'beta',4) -D__version__=1.2.4b4 -I/usr/local/mysql/include -
>I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c _mysql.c -
>o build/temp.macosx-10.7-intel-2.7/_mysql.o -Wno-null-conversion -Os -g -fno-strict-aliasing ->arch i386
>
>cc1: error: unrecognized command line option "-Wno-null-conversion"
>
>error: command 'llvm-gcc-4.2' failed with exit status 1

最佳答案

首先看起来您正在尝试安装测试版,除非这就是您正在寻找的,否则我强烈建议您使用 pip 进行安装

您似乎遇到的错误必须处理 gcc 不理解命令行选项之一的问题。

这里是您尝试安装的最新版本库的链接

https://pypi.python.org/pypi/MySQL-python/1.2.4

我会尝试一下。

或从安装程序中删除无效选项。

关于python - MySQL-python-1.2.4b4 OSX 编译错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18814650/

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