无法使用pip安装blist

时间:2018-11-01 11:20:56

标签: python python-2.7

我正在尝试使用pip安装blist

    pip install blist

但出现以下错误:

    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Qunused-arguments -Qunused-arguments -fPIC -DBLIST_FLOAT_RADIX_SORT=1 -I/usr/include/python2.7 -c blist/_blist.c -o build/temp.linux-x86_64-2.7/blist/_blist.o
      x86_64-linux-gnu-gcc: error: unrecognized command line option ‘-Qunused-arguments’; did you mean ‘-Wunused-parameter’?
      x86_64-linux-gnu-gcc: error: unrecognized command line option ‘-Qunused-arguments’; did you mean ‘-Wunused-parameter’?
      error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

      ----------------------------------------
      Failed building wheel for blist
      Running setup.py clean for blist
    Failed to build blist

我尝试安装python-dev和setuptools,未做任何更改 我尝试导出标志:

    export CFLAGS=-Qunused-arguments
    export CPPFLAGS=-Qunused-arguments

没有成功。

我正在使用python 2.7,ubuntu 18.04

0 个答案:

没有答案