python psycopg2_python-无法在centos 7上安装psycopg2

Collectingpsycopg2Usingcached psycopg2-2.6.2.tar.gzInstallingcollected packages:psycopg2Runningsetup.py installforpsycopg2...errorCompleteoutputfromcommand/usr/bin/python3.4-u-c"import setuptools, tokenize;__file__='/tmp/pip-build-n0buiow5/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/tmp/pip-jk1w8dv1-record/install-record.txt--single-version-externally-managed--compile:running install

running build

running build_py

creating build

creating build/lib.linux-x86_64-3.4creating build/lib.linux-x86_64-3.4/psycopg2

copying lib/tz.py->build/lib.linux-x86_64-3.4/psycopg2

copying lib/pool.py->build/lib.linux-x86_64-3.4/psycopg2

copying lib/extras.py->build/lib.linux-x86_64-3.4/psycopg2

copying lib/extensions.py->build/lib.linux-x86_64-3.4/psycopg2

copying lib/_range.py->build/lib.linux-x86_64-3.4/psycopg2

copying lib/__init__.py->build/lib.linux-x86_64-3.4/psycopg2

copying lib/psycopg1.py->build/lib.linux-x86_64-3.4/psycopg2

copying lib/_json.py->build/lib.linux-x86_64-3.4/psycopg2

copying lib/errorcodes.py->build/lib.linux-x86_64-3.4/psycopg2

creating build/lib.linux-x86_64-3.4/psycopg2/tests

copying tests/test_errcodes.py->build/lib.linux-x86_64-3.4/psycopg2/tests

copying tests/dbapi20.py->build/lib.linux-x86_64-3.4/psycopg2/tests

copying tests/test_bug_gc.py->build/lib.linux-x86_64-3.4/psycopg2/tests

copying tests/test_async.py->build/lib.linux-x86_64-3.4/psycopg2/tests

copying tests/testconfig.py->build/lib.linux-x86_64-3.4/psycopg2/tests

copying tests/test_quote.py->build/lib.linux-x86_64-3.4/psycopg2/tests

copying tests/test_extras_dictcursor.py->build/lib.linux-x86_64-3.4/psycopg2/tests

copying tests/test_types_basic.py->build/lib.linux-x86_64-3.4/psycopg2/tests

copying tests/test_transaction.py->build/lib.linux-x86_64-3.4/psycopg2/tests

copying tests/test_cancel.py->build/lib.linux-x86_64-3.4/psycopg2/tests

copying tests/test_dates.py->build/lib.linux-x86_64-3.4/psycopg2/tests

copying tests/test_lobject.py->build/lib.linux-x86_64-3.4/psycopg2/tests

copying tests/dbapi20_tpc.py->build/lib.linux-x86_64-3.4/psycopg2/tests

copying tests/test_copy.py->build/lib.linux-x86_64-3.4/psycopg2/tests

copying tests/test_types_extras.py->build/lib.linux-x86_64-3.4/psycopg2/tests

copying tests/test_psycopg2_dbapi20.py->build/lib.linux-x86_64-3.4/psycopg2/tests

copying tests/test_module.py->build/lib.linux-x86_64-3.4/psycopg2/tests

copying tests/__init__.py->build/lib.linux-x86_64-3.4/psycopg2/tests

copying tests/test_green.py->build/lib.linux-x86_64-3.4/psycopg2/tests

copying tests/testutils.py->build/lib.linux-x86_64-3.4/psycopg2/tests

copying tests/test_with.py->build/lib.linux-x86_64-3.4/psycopg2/tests

copying tests/test_cursor.py->build/lib.linux-x86_64-3.4/psycopg2/tests

copying tests/test_connection.py->build/lib.linux-x86_64-3.4/psycopg2/tests

copying tests/test_notify.py->build/lib.linux-x86_64-3.4/psycopg2/tests

copying tests/test_bugX000.py->build/lib.linux-x86_64-3.4/psycopg2/testsSkippingoptional fixer:bufferSkippingoptional fixer:idiomsSkippingoptional fixer:set_literalSkippingoptional fixer:ws_comma

running build_ext

building'psycopg2._psycopg'extension

creating build/temp.linux-x86_64-3.4creating build/temp.linux-x86_64-3.4/psycopg

gcc-pthread-Wno-unused-result-DDYNAMIC_ANNOTATIONS_ENABLED=1-DNDEBUG-O2-g-pipe-Wall-Wp,-D_FORTIFY_SOURCE=2-fexceptions-fstack-protector-strong--param=ssp-buffer-size=4-grecord-gcc-switches-m64-mtune=generic-D_GNU_SOURCE-fPIC-fwrapv-fPIC-DPSYCOPG_DEFAULT_PYDATETIME=1-DPSYCOPG_VERSION="2.6.2 (dt dec pq3 ext)"-DPG_VERSION_HEX=0x090212-I/usr/include/python3.4m-I.-I/usr/include-I/usr/include/pgsql/server-c psycopg/psycopgmodule.c-o build/temp.linux-x86_64-3.4/psycopg/psycopgmodule.o-Wdeclaration-after-statementInfile includedfrompsycopg/psycopgmodule.c:27:0:./psycopg/psycopg.h:30:20:fatal error:Python.h:Nosuch fileordirectory#include^compilation terminated.error:command'gcc'failedwithexitstatus1----------------------------------------Command"/usr/bin/python3.4 -u -c "importsetuptools,tokenize;__file__='/tmp/pip-build-n0buiow5/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 /tmp/pip-jk1w8dv1-record/install-record.txt --single-version-externally-managed --compile"failedwitherror code1in/tmp/pip-build-n0buiow5/psycopg2/

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值