您现在的位置是:首页 >学无止境 >No module named ‘pycocotools._mask‘网站首页学无止境
No module named ‘pycocotools._mask‘
简介No module named ‘pycocotools._mask‘
Here is the Solution.
I am very sure it will work for you guys.
-
1) First open a command prompt and run
git clone GitHub - cocodataset/cocoapi: COCO API - Dataset @ http://cocodataset.org/ -
2) Then move to this directory
cd coco/PythonAPI -
3) And then edit the setup.py file in the coco/PythonAPI directory from this
extra_compile_args=['-Wno-cpp', '-Wno-unused-function', '-std=c99'],
to this
extra_compile_args=['-std=c99'],
4) then save
- And then in the coco/PythonAPI directory, run
python setup.py install
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
风语者!平时喜欢研究各种技术,目前在从事后端开发工作,热爱生活、热爱工作。