尽管经过多次尝试,我还是无法构建从Google代码页下载的pyodbc模块。
失败并显示以下错误消息
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

这是我正在使用的xcode版本
BHUKRK263339D:pyodbc-master Minat_Verma $ xcode-select --version xcode-select版本2311。
我错过了什么。 ?
答案 0 :(得分:0)
您尚未安装Xcode命令行工具。
您可以使用以下命令执行此操作:
$ xcode-select --install
否则你可能必须从Xcode本身安装它们。