简体   繁体   English

在Lion-mountain(Mac OS X 10.8)上安装MYSQL-python时出现clang错误

[英]clang error when installing MYSQL-python on Lion-mountain (Mac OS X 10.8)

When I try installing mysql-python using below command, 当我尝试使用以下命令安装mysql-python

macbook-user$ sudo pip install MYSQL-python

I get these messages: 我收到以下消息:

/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/pyconfig.h:891:1: warning: this is the location of the previous definition /System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/pyconfig.h:891:1:警告:这是先前定义的位置

/usr/bin/lipo: /tmp/_mysql-LtlmLe.o and /tmp/_mysql-thwkfu.o have the same architectures (i386) and can't be in the same fat output file / usr / bin / lipo:/tmp/_mysql-LtlmLe.o和/tmp/_mysql-thwkfu.o具有相同的体系结构(i386),并且不能位于相同的fat输出文件中

clang: error: lipo command failed with exit code 1 (use -v to see invocation) clang:错误:lipo命令失败,退出代码为1(使用-v查看调用)

error: command 'clang' failed with exit status 1 错误:命令“ clang”失败,退出状态为1

Does anyone know how to solve this problem? 有谁知道如何解决这个问题? Help me please! 请帮帮我!

At first glance it looks like damaged pip package. 乍一看,它看起来像是损坏的点子包装。 Have you tried easy_install instead with the same package? 您是否尝试过使用同一个软件包安装easy_install?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM