首页 > 其他 > 详细

安装pycocotools报无效的数值参数“/Wno-cpp”错误

时间:2020-02-13 14:33:37      阅读:110      评论:0      收藏:0      [点我收藏+]

win7 sp1 + vs2019环境下执行pip install ‘git+https://github.com/cocodataset/cocoapi.git#subdirectory=PythonAPI‘报出

cl: 命令行 error D8021 :无效的数值参数“/Wno-cpp”

错误。

解决方法:

首先执行

git clone https://github.com/cocodataset/cocoapi.git

然后cd到PythonAPI目录下。

修改setup.py文件。

将
extra_compile_args=[-Wno-cpp, -Wno-unused-function, -std=c99],
改为
extra_compile_args=[-std=c99],

保存后执行

python setup.py build_ext --inplace
python setup.py build_ext install

安装pycocotools报无效的数值参数“/Wno-cpp”错误

原文:https://www.cnblogs.com/tiandsp/p/12303352.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!