山狮上的Psycopg2适配器安装

时间:2013-01-26 10:07:53

标签: psycopg2 postgresql-9.2

我是一个尝试学习django的初学者。我想安装Postgresql。

Anurags-MacBook-Pro:psycopg2-2.4.6 anurag_prasad$ python setup.py install
running install
running build
running build_py
running build_ext
building 'psycopg2._psycopg' extension
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 -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.4.6 (dt dec pq3 ext)" -DPG_VERSION_HEX=0x090104 -DPSYCOPG_EXTENSIONS=1 -DPSYCOPG_NEW_BOOLEAN=1 -DHAVE_PQFREEMEM=1 -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I. -I/usr/include -I/usr/include/postgresql/server -c psycopg/psycopgmodule.c -o build/temp.macosx-10.8-intel-2.7/psycopg/psycopgmodule.o
unable to execute clang: No such file or directory
error: command 'clang' failed with exit status 1

1 个答案:

答案 0 :(得分:1)

您需要安装Xcode Command Line Tools,以便clang编译器可用于编译pyscopg2模块的本机部分。

相关问题