简体   繁体   English

Mac上的pyodbc安装问题

[英]pyodbc installation issues on Mac

I'm trying to install pyodbc on my mac because I want to connect to a sql server and I have been going through a lot of forum to get it to work. 我正在尝试在Mac上安装pyodbc,因为我想连接到sql服务器,并且已经经历了很多论坛才能使其正常工作。 Everything has been install except the pyodbc (I've tried pip,homebrew, easy_istall and even tried to install using the source code but nothing worked) and it's giving me the following error: 除pyodbc之外,所有东西都已安装(我尝试过pip,homebrew,easy_istall,甚至尝试使用源代码进行安装,但均无效果),这给了我以下错误:


(hhl)OSFOLA-034901:bin henry.humadi$ easy_install pyodbc
Searching for pyodbc
Reading https://pypi.python.org/simple/pyodbc/
Reading http://code.google.com/p/pyodbc
Reading http://code.google.com/p/pyodbc/downloads/list
Best match: pyodbc 3.0.7
Downloading http://pyodbc.googlecode.com/files/pyodbc-3.0.7.zip
Processing pyodbc-3.0.7.zip
Writing /var/folders/w4/h0nc35117x1c0psqpsm4vvlnhk02nh/T/easy_install-AFM6yU/pyodbc-3.0.7/setup.cfg
Running pyodbc-3.0.7/setup.py -q bdist_egg --dist-dir /var/folders/w4/h0nc35117x1c0psqpsm4vvlnhk02nh/T/easy_install-AFM6yU/pyodbc-3.0.7/egg-dist-tmp-G6Yp3F
warning: no files found matching 'tests/*'
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: Setup script exited with error: command 'cc' failed with exit status 1

Can anyone please decipher this error message for me. 任何人都可以为我破译此错误消息。 I read somewhere it has to do with Xcode 5.1 but I still don't understand it. 我在某处阅读了与Xcode 5.1有关的内容,但我仍然不明白。

Thank you in advance. 先感谢您。

Xcode 5 caused clang to throw a fatal error when it encountered a command line flag, which broke a lot of things. 当遇到命令行标记时,Xcode 5导致clang引发致命错误,这破坏了很多事情。

Run the command like this and it should work: ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future easy_install pyodbc 像这样运行命令,它应该可以正常工作: ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future easy_install pyodbc

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

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