错误安装psycopg2 linux“ x86_64-linux-gnu-gcc:错误:无法识别的命令行选项'-Qunused-arguments'”

弗拉基米尔(Vladimir)

再会。我正在尝试在虚拟环境中安装。我尝试了不同的技巧,但错误仍然存​​在。我的系统是Ubuntu 14.04。

(.env)volody@volody-MVG:~/program/MyProject/eveportal$ pip install psycopg2
Collecting psycopg2
   Using cached psycopg2-2.6.1.tar.gz
Installing collected packages: psycopg2
   Running setup.py install for psycopg2
 Complete output from command /home/volody/program/MyProject/eveportal/.env/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-8OJou3/psycopg2/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-29kcwo-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/volody/program/MyProject/eveportal/.env/include/site/python2.7/psycopg2:
 ...
 copying tests/test_async.py -> build/lib.linux-x86_64-2.7/psycopg2/tests
running build_ext
building 'psycopg2._psycopg' extension
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/psycopg
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -Qunused-arguments -Qunused-arguments -fPIC -DHAVE_MXDATETIME=1 -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.6.1 (dt dec mx pq3 ext lo64)" -DPG_VERSION_HEX=0x09030A -DHAVE_LO64=1 -I/usr/include/python2.7/mx -I/usr/include/python2.7 -I. -I/usr/include/postgresql -I/usr/include/postgresql/9.3/server -c psycopg/psycopgmodule.c -o build/temp.linux-x86_64-2.7/psycopg/psycopgmodule.o -Wdeclaration-after-statement
x86_64-linux-gnu-gcc: error: unrecognized command line option ‘-Qunused-arguments’
x86_64-linux-gnu-gcc: error: unrecognized command line option ‘-Qunused-arguments’
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
努德·拉森(Knud Larsen)

»»选项'-Qunused-arguments'««:似乎是“点子”。

psycopg2-2.6.1可以轻松地安装在Ubuntu 14.04-64bits上,具有:

$ cd psycopg2-2.6.1/ && sudo python setup.py install

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

Related 相关文章

热门标签

归档