python3.7.2安装失败_安装psycopg2失败的python 3.7

Buildingwheelsforcollected packages:psycopg2Buildingwheelforpsycopg2(setup.py)...errorERROR:Commanderrored outwithexit status1:command:/Users/niamhtohill/ios_dev/vf_api/venv/bin/python3-u-c'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/kk/0xnrjqj950qdky6pkv1dws4r0000gn/T/pip-install-q5q1ago2/psycopg2/setup.py'"'"'; __file__='"'"'/private/var/folders/kk/0xnrjqj950qdky6pkv1dws4r0000gn/T/pip-install-q5q1ago2/psycopg2/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))'bdist_wheel-d/private/var/folders/kk/0xnrjqj950qdky6pkv1dws4r0000gn/T/pip-wheel-3u2cfbpc--python-tag cp37cwd:/private/var/folders/kk/0xnrjqj950qdky6pkv1dws4r0000gn/T/pip-install-q5q1ago2/psycopg2/Completeoutput(144lines):running bdist_wheelrunning buildrunning build_pycreating buildcreating build/lib.macosx-10.9-x86_64-3.7creating build/lib.macosx-10.9-x86_64-3.7/psycopg2copying lib/_json.py->build/lib.macosx-10.9-x86_64-3.7/psycopg2copying lib/extras.py->build/lib.macosx-10.9-x86_64-3.7/psycopg2copying lib/compat.py->build/lib.macosx-10.9-x86_64-3.7/psycopg2copying lib/errorcodes.py->build/lib.macosx-10.9-x86_64-3.7/psycopg2copying lib/tz.py->build/lib.macosx-10.9-x86_64-3.7/psycopg2copying lib/_range.py->build/lib.macosx-10.9-x86_64-3.7/psycopg2copying lib/_ipaddress.py->build/lib.macosx-10.9-x86_64-3.7/psycopg2copying lib/_lru_cache.py->build/lib.macosx-10.9-x86_64-3.7/psycopg2copying lib/__init__.py->build/lib.macosx-10.9-x86_64-3.7/psycopg2copying lib/extensions.py->build/lib.macosx-10.9-x86_64-3.7/psycopg2copying lib/errors.py->build/lib.macosx-10.9-x86_64-3.7/psycopg2copying lib/sql.py->build/lib.macosx-10.9-x86_64-3.7/psycopg2copying lib/pool.py->build/lib.macosx-10.9-x86_64-3.7/psycopg2running build_extbuilding'psycopg2._psycopg'extensioncreating build/temp.macosx-10.9-x86_64-3.7creating build/temp.macosx-10.9-x86_64-3.7/psycopggcc-Wno-unused-result-Wsign-compare-Wunreachable-code-fno-common-dynamic-DNDEBUG-g-fwrapv-O3-Wall-arch x86_64-g-DPSYCOPG_VERSION=2.8.3(dt dec pq3 ext lo64)-DPG_VERSION_NUM=100005-DHAVE_LO64=1-I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m-I.-I/usr/local/Cellar/postgresql/10.5/include-I/usr/local/Cellar/postgresql/10.5/include/server-c psycopg/psycopgmodule.c-o build/temp.macosx-10.9-x86_64-3.7/psycopg/psycopgmodule.ogcc-Wno-unused-result-Wsign-compare-Wunreachable-code-fno-common-dynamic-DNDEBUG-g-fwrapv-O3-Wall-arch x86_64-g-DPSYCOPG_VERSION=2.8.3(dt dec pq3 ext lo64)-DPG_VERSION_NUM=100005-DHAVE_LO64=1-I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m-I.-I/usr/local/Cellar/postgresql/10.5/include-I/usr/local/Cellar/postgresql/10.5/include/server-c psycopg/green.c-o build/temp.macosx-10.9-x86_64-3.7/psycopg/green.ogcc-Wno-unused-result-Wsign-compare-Wunreachable-code-fno-common-dynamic-DNDEBUG-g-fwrapv-O3-Wall-arch x86_64-g-DPSYCOPG_VERSION=2.8.3(dt dec pq3 ext lo64)-DPG_VERSION_NUM=100005-DHAVE_LO64=1-I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m-I.-I/usr/local/Cellar/postgresql/10.5/include-I/usr/local/Cellar/postgresql/10.5/include/server-c psycopg/pqpath.c-o build/temp.macosx-10.9-x86_64-3.7/psycopg/pqpath.opsycopg/pqpath.c:135:17:warning:implicit conversionfromenumeration type'ConnStatusType'to different enumeration type'ExecStatusType'[-Wenum-conversion]PQstatus(conn->pgconn):PQresultStatus(*pgres)));^~~~~~~~~~~~~~~~~~~~~~psycopg/pqpath.c:1712:11:warning:code will never be executed[-Wunreachable-code]ret=1;^psycopg/pqpath.c:1817:17:warning:implicit conversionfromenumeration type'ConnStatusType'to different enumeration type'ExecStatusType'[-Wenum-conversion]PQstatus(curs->conn->pgconn):PQresultStatus(curs->pgres)));^~~~~~~~~~~~~~~~~~~~~~~~~~~~............................/adapter_qstring.o build/temp.macosx-10.9-x86_64-3.7/psycopg/microprotocols.o build/temp.macosx-10.9-x86_64-3.7/psycopg/microprotocols_proto.o build/temp.macosx-10.9-x86_64-3.7/psycopg/typecast.o-L/usr/local/lib-lpq-lssl-lcrypto-o build/lib.macosx-10.9-x86_64-3.7/psycopg2/_psycopg.cpython-37m-darwin.sold:librarynotfoundfor-lsslclang:error:linker command failedwithexit code1(use-v to see invocation)error:command'gcc'failedwithexit status1----------------------------------------ERROR:Commanderrored outwithexit status1:/Users/niamhtohill/ios_dev/vf_api/venv/bin/python3-u-c'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/kk/0xnrjqj950qdky6pkv1dws4r0000gn/T/pip-install-q5q1ago2/psycopg2/setup.py'"'"'; __file__='"'"'/private/var/folders/kk/0xnrjqj950qdky6pkv1dws4r0000gn/T/pip-install-q5q1ago2/psycopg2/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))'install--record/private/var/folders/kk/0xnrjqj950qdky6pkv1dws4r0000gn/T/pip-record-t0kpmijs/install-record.txt--single-version-externally-managed--compile--install-headers/Users/niamhtohill/ios_dev/vf_api/venv/bin/../include/site/python3.7/psycopg2Checkthe logsforfull command output.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值