简体   繁体   English

我如何在Mac OS X 8.5(Maountain Lion OS)中安装pyodbc

[英]How can i get pyodbc installed in Mac OS X 8.5 (Maountain lion OS)

Despite several attempts , I have not been able to build the pyodbc module downloaded from Google codes page. 尽管进行了几次尝试,但我仍无法构建从Google代码页下载的pyodbc模块。

It fails with the below error message 它失败并显示以下错误消息

 WARNING: git describe failed with: 32512 WARNING: Unable to determine version. Using 3.0.0.0 running build running build_ext building 'pyodbc' extension creating build/temp.macosx-10.8-intel-2.7/Users/Minat_Verma/Desktop/ProjectFolder creating build/temp.macosx-10.8-intel-2.7/Users/Minat_Verma/Desktop/ProjectFolder/MIP creating build/temp.macosx-10.8-intel-2.7/Users/Minat_Verma/Desktop/ProjectFolder/MIP/opt creating build/temp.macosx-10.8-intel-2.7/Users/Minat_Verma/Desktop/ProjectFolder/MIP/opt/Verica drivers creating build/temp.macosx-10.8-intel-2.7/Users/Minat_Verma/Desktop/ProjectFolder/MIP/opt/Verica drivers/pyodbc-master creating build/temp.macosx-10.8-intel-2.7/Users/Minat_Verma/Desktop/ProjectFolder/MIP/opt/Verica drivers/pyodbc-master/src clang -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 -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch x86_64 -pipe -DPYODBC_VERSION=3.0.0-unsupported -DPYODBC_UNICODE_WIDTH=2 -UMAC_OS_X_VERSION_10_7 -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c /Users/Minat_Verma/Desktop/ProjectFolder/MIP/opt/Verica drivers/pyodbc-master/src/buffer.cpp -o build/temp.macosx-10.8-intel-2.7/Users/Minat_Verma/Desktop/ProjectFolder/MIP/opt/Verica drivers/pyodbc-master/src/buffer.o -Wno-write-strings -Wno-deprecated-declarations unable to execute clang: No such file or directory error: command 'clang' failed with exit status 1 

Here is the xcode version I am using 这是我正在使用的xcode版本

BHUKRK263339D:pyodbc-master Minat_Verma$ xcode-select --version xcode-select version 2311. BHUKRK263339D:pyodbc-master Minat_Verma $ xcode-select --version xcode-select版本2311。

Am I missing any thing. 我错过了什么吗? ?

You haven't installed the Xcode command line tools. 您尚未安装Xcode命令行工具。

You can probably do it with the following command: 您可能可以使用以下命令进行操作:

$ xcode-select --install

else you might have to install them from within Xcode itself. 否则,您可能必须从Xcode本身安装它们。

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

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