【问题标题】:Error install psycopg2 linux " x86_64-linux-gnu-gcc: error: unrecognized command line option ‘-Qunused-arguments’"安装 psycopg2 linux 时出错“x86_64-linux-gnu-gcc:错误:无法识别的命令行选项‘-Qunused-arguments’”
【发布时间】:2015-10-27 11:16:58
【问题描述】:

美好的一天。我正在尝试在虚拟环境中安装。我尝试了不同的提示,但错误仍然存​​在。我的系统是 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

【问题讨论】:

    标签: linux pip psycopg2


    【解决方案1】:

    »» 选项“-Qunused-arguments”««:似乎是一个“点子”的东西。

    `psycopg2-2.6.1' 可以很容易地安装在 Ubuntu 14.04 - 64bits 上:

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

    【讨论】:

      猜你喜欢
      • 2016-01-23
      • 1970-01-01
      • 2016-08-27
      • 1970-01-01
      • 1970-01-01
      • 2020-12-14
      • 1970-01-01
      • 2017-01-22
      • 2016-01-08
      相关资源
      最近更新 更多