今天早上我在Mac上安装mysql python connector时遇到了一些大问题。你知道吗
问题在于xcode 5.1的最新更新:
http://bruteforce.gr/installing-mitmproxy-os-x-maverics-bypassing-clang-error-unknown-argument.html
http://forums.getpebble.com/discussion/11862/installation-error-perhaps-due-to-xcode-5-1
但是,我尝试了当前的解决方法,但仍然得到错误:
这就是我尝试过的:
ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future sudo pip install mysql-python
这是错误:
cc -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,5,'final',1) -D__version__=1.2.5 -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.9-intel-2.7/_mysql.o -Os -g -fno-strict-aliasing -arch x86_64
clang: error: unknown argument: '-mno-fused-madd' [-Wunused-command-line-argument-hard-error-in-future]
clang: note: this will be a hard error (cannot be downgraded to a warning) in the future
error: command 'cc' failed with exit status 1
有人遇到过同样的问题,并且知道在虚拟环境中工作的解决方案吗?你知道吗
我在你的第一个链接上写了这篇文章。我不是百分之百肯定,但我认为问题在于sudo的使用。变量在您的用户下设置,而pip命令被提升为root权限,即在另一个用户下执行。尝试从一开始就以root用户身份登录,而不使用sudo。你知道吗
相关问题 更多 >
编程相关推荐