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、找到steup.py 文件
  •     修改:extra_compile_args=[’-Wno-cpp’]
  •     替换:extra_compile_args = {'gcc': ['/Qstd=c99']}
  • 4、文件目录下运行
python setup.py build_ext install

猜你喜欢

转载自blog.csdn.net/qq_19707521/article/details/106692395