【发布时间】:2013-06-25 03:57:45
【问题描述】:
当我尝试使用“pip install psycopg2”在 Mac 上安装 psycopg2 时,出现权限错误。以下为截图:
下载/解压 psycopg2 为包 psycopg2 运行 setup.py egg_info
安装收集的包:psycopg2 为 psycopg2 运行 setup.py install 构建“psycopg2._psycopg”扩展 / A p p l i c a t i o n s / X c o d e 。 a p p / C o n t e n t s / D e v e l o p e r / T o o l c h a i n s / X c o d e D e f a u l t。 xctoolchain / usr / bin / clang - fno - strict - aliasing - fno - common - dynamic - archi 3 8 6 - archx 8 6 _ 6 4 - g - O 2 - DNDEBUG - g - O 3 -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION= “2.5.1(dt dec pq3 ext)”-DPG_VERSION_HEX=0x090105 -DPSYCOPG_EXTENSIONS=1 -DPSYCOPG_NEW_BOOLEAN=1 -DHAVE_PQFREEMEM=1 -I/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.6-intel-2.7/psycopg/psycopgmodule.o 无法执行/:权限被拒绝 错误:命令“/”失败,退出状态为 1 命令的完整输出 /Users/ivy.jia@canarie.local/venv/python_venv/bin/python -c "import setuptools;file='/Users/ivy.jia@canarie.local/venv /python_venv/build/psycopg2/setup.py';exec(compile(open(file).read().replace('\r\n', '\n'), 文件, 'exec'))" install --record /tmp/pip-O7Ov2u-record/install-record.txt --single-version-externally-managed --install-headers /Users/ivy.jia @canarie.local/venv/python_venv/bin/../include/site/python2.7: 运行安装
运行构建
运行 build_py
运行 build_ext
构建“psycopg2._psycopg”扩展
/ A p p l i c a t i o n s / X c o d e 。 a p p / C o n t e n t s / D e v e l o p e r / T o o l c h a i n s / X c o d e D e f a u l t。 xctoolchain / usr / bin / clang - fno - strict - aliasing - fno - common - dynamic - archi 3 8 6 - archx 8 6 _ 6 4 - g - O 2 - DNDEBUG - g - O 3 -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION= “2.5.1(dt dec pq3 ext)”-DPG_VERSION_HEX=0x090105 -DPSYCOPG_EXTENSIONS=1 -DPSYCOPG_NEW_BOOLEAN=1 -DHAVE_PQFREEMEM=1 -I/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.6-intel-2.7/psycopg/psycopgmodule.o
无法执行/:权限被拒绝
错误:命令“/”失败,退出状态
【问题讨论】:
标签: psycopg2