当我尝试使用“pip install psycopg2”在 Mac 上安装 psycopg2 时,出现权限错误。以下为抓图:
下载/解压 psycopg2 为包 psycopg2 运行 setup.py egg_info
安装收集到的包:psycopg2 运行 setup.py install 为 psycopg2 构建“psycopg2._psycopg”扩展/应用程序/X 代码。应用程序/内容/开发人员/工具链/X代码默认。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。file ='/Users/ivy.jia@canarie.local/venv/python_venv/build/psycopg2/setup.py';exec(compile(open( file ).read().replace('\r\n', ' \n'), file , '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 应用程序 /X 代码。应用程序/内容/开发人员/工具链/X代码默认。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
无法执行/:权限被拒绝
错误:命令“/”失败,退出状态