Win10 安装 cython-bbox

pip install cython-bbox


cl: 命令行 error D8021 :无效的数值参数“/Wno-cpp”
error: command ‘D:\programs\vision studio 2015\VC\BIN\x86_amd64\cl.exe’ failed with exit status 2
ERROR: Failed building wheel for cython-bbox



  • 1、把 依赖包 下载下来 

         ps: pip install 下载安装时 的 URL  /  Pypi 搜索:地址

  • 2、解压文件
  • 3、找到 文件
  •     修改:extra_compile_args=[’-Wno-cpp’]
  •     替换:extra_compile_args = {'gcc': ['/Qstd=c99']}
  • 4、文件目录下运行
python build_ext install


已标记关键词 清除标记
<div><p>After run python build develop, It shows: 正在生成代码 已完成代码的生成 running develop running egg_info creating DCNv2.egg-info writing DCNv2.egg-info\PKG-INFO writing dependency_links to DCNv2.egg-info\dependency_links.txt writing top-level names to DCNv2.egg-info\top_level.txt writing manifest file 'DCNv2.egg-info\SOURCES.txt' reading manifest file 'DCNv2.egg-info\SOURCES.txt' writing manifest file 'DCNv2.egg-info\SOURCES.txt' running build_ext copying build\ -> Creating c:\users\dongziqi\anaconda3\envs\fairmot\lib\site-packages\DCNv2.egg-link (link to .) Adding DCNv2 0.1 to easy-install.pth file</p> <p>Installed f:\study\fairmot-master\fairmot-master\src\lib\models\networks\dcnv2 Processing dependencies for DCNv2==0.1 Finished processing dependencies for DCNv2==0.1</p> <p>this is the first build step, I have no idea whether it is success or not. But it generate _ext.cp37-win_amd64.pyd. =================================================================And then I run:python mot --load_model ../models/all_dla34.pth It shows: Traceback (most recent call last): File "", line 13, in import datasets.dataset.jde as datasets File "F:\study\FairMOT-master\FairMOT-master\src\lib\datasets\dataset\", line 16, in from cython_bbox import bbox_overlaps as bbox_ious ModuleNotFoundError: No module named 'cython_bbox' ================================================================= Then I tried: pip install cython_bbox, However, also failed. Failed to build cython-bbox Installing collected packages: cython-bbox Running install for cython-bbox ... error ================================================================= I dont know which step is wrong. Do i failed in the first build step??? Thank you for you answer!!!</p><p>该提问来源于开源项目:ifzhang/FairMOT</p></div>
©️2020 CSDN 皮肤主题: 编程工作室 设计师:CSDN官方博客 返回首页