windows、ubuntu安装pycocotools
一,Ubuntu系统直接pip安装,运行下面的命令即可pip install git+https://github.com/philferriere/cocoapi.git#subdirectory=PythonAPI二,windows系统1,下载code,code链接https://github.com/philferriere/cocoapi2,安装Visua...
·
一,Ubuntu系统
直接pip安装,运行下面的命令即可
pip install git+https://github.com/philferriere/cocoapi.git#subdirectory=PythonAPI
二,windows系统
1,下载code,code链接
https://github.com/philferriere/cocoapi
2,安装Visual C++ 2015编译工具
a) 下载 Visual C++ 2015
b) 安装
自定义安装,选择指定SDK即可,需要等40分钟左右
3,安装编译
a) 进入到 cocoapi/PythonAPI,执行编译命令
cd cocoapi/PythonAPI
python setup.py build_ext install
如果setpy这一步出错,则打开setup.py文件把 extra_compile_args 注释掉即可,如下图
4,验证
另开一个终端,进入python命令行模式,执行命令验证
import pycocotools.mask as mask_util
更多推荐
已为社区贡献1条内容
所有评论(0)