CompileError:命令'x86_64-linux-gnu-gcc'失败,退出状态为1 \ n

时间:2019-03-14 12:15:45

标签: python compiler-errors importerror

当我在ubuntu 18.04上运行music.py(来自https://github.com/yump/doamusic.git)时,出现以下错误。

`In file included from /usr/include/python2.7/numpy/ndarraytypes.h:1809:0,
                 from /usr/include/python2.7/numpy/ndarrayobject.h:18,
                 from /usr/include/python2.7/numpy/arrayobject.h:4,
                 from /home/varun/.pyxbld/temp.linux-x86_64-2.7/pyrex
/doamusic/_music.c:593:
/usr/include/python2.7/numpy/npy_1_7_deprecated_api.h:15:2: warning:                #warning "Using deprecated NumPy API, disable it by " "#defining                                        NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
#warning "Using deprecated NumPy API, disable it by " \
   ^~~~~~~

/home/varun/.pyxbld/temp.linux-x86_64-2.7/pyrex/doamusic  /_music.c:597:10: fatal error: cmusic.h: No such file or directory
     #include "cmusic.h"
      ^~~~~~~~~~
compilation terminated.

  File "/usr/lib/python2.7/distutils/unixccompiler.py", line 124, in   _compile
    raise CompileError, msg

 ImportError: Building module doamusic._music failed: ["CompileError:    command 'x86_64-linux-gnu-gcc' failed with exit status 1\n"]

让我知道错误的含义以及如何解决?

0 个答案:

没有答案