如何修复“ Chainercv错误的构建轮”?

时间:2019-12-19 02:56:04

标签: python chainercv

我尝试在ubuntu16.04上安装chainerCV,但由于限制而失败,仅显示部分错误消息:

Building wheels for collected packages: chainercv, chainer
  Building wheel for chainercv (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /home/chenfan/anaconda3/envs/CDD/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ajkpmiwk/chainercv/setup.py'"'"'; __file__='"'"'/tmp/pip-install-ajkpmiwk/chainercv/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-senmhcqc --python-tag cp37
       cwd: /tmp/pip-install-ajkpmiwk/chainercv/
  Complete output (233 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-x86_64-3.7
  running build_ext
  building 'chainercv.utils.bbox._nms_gpu_post' extension
  creating build/temp.linux-x86_64-3.7
  creating build/temp.linux-x86_64-3.7/chainercv
  creating build/temp.linux-x86_64-3.7/chainercv/utils
  creating build/temp.linux-x86_64-3.7/chainercv/utils/bbox
  gcc -pthread -B /home/chenfan/anaconda3/envs/CDD/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/chenfan/anaconda3/envs/CDD/lib/python3.7/site-packages/numpy/core/include -I/home/chenfan/anaconda3/envs/CDD/include/python3.7m -c chainercv/utils/bbox/_nms_gpu_post.c -o build/temp.linux-x86_64-3.7/chainercv/utils/bbox/_nms_gpu_post.o
  In file included from /home/chenfan/anaconda3/envs/CDD/lib/python3.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1830:0,
                   from /home/chenfan/anaconda3/envs/CDD/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,
                   from /home/chenfan/anaconda3/envs/CDD/lib/python3.7/site-packages/numpy/core/include/numpy/arrayobject.h:4,
                   from chainercv/utils/bbox/_nms_gpu_post.c:475:
  /home/chenfan/anaconda3/envs/CDD/lib/python3.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
   #warning "Using deprecated NumPy API, disable it with " \
    ^
             ^
  error: command 'gcc' failed with exit status 1
  ----------------------------------------
  ERROR: Failed building wheel for chainercv

0 个答案:

没有答案