标题: windows上成功安装pycocotools(ImportError: No module named pycocotools) [打印本页] 作者: 东方耀 时间: 2019-12-24 19:42 标题: windows上成功安装pycocotools(ImportError: No module named pycocotools) windows上成功安装pycocotools
https://github.com/philferriere/cocoapi
ImportError: No module named pycocotools.coco
在linux上面比较简单:
pip install cython
pip install pycocotools
Compiling pycocotools/_mask.pyx because it changed.
[1/1] Cythonizing pycocotools/_mask.pyx
D:\ProgramData\Miniconda3\envs\py3_torch_gpu\lib\site-packages\Cython\Compiler\Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: H:\tf_pytorch_works\Project12-Mask_RCNN\cocoapi-master\PythonAPI\pycocotools\_mask.pyx
d:\programdata\miniconda3\envs\py3_torch_gpu\lib\site-packages\numpy\core\include\numpy\npy_1_7_deprecated_api.h(14) : Warning Msg: Using deprecated NumPy API, disable it with #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
pycocotools/_mask.c(3277): warning C4244: '=': conversion from 'Py_ssize_t' to 'siz', possible loss of data
pycocotools/_mask.c(3681): warning C4244: 'function': conversion from 'npy_intp' to 'siz', possible loss of data
pycocotools/_mask.c(6643): warning C4244: '=': conversion from 'npy_intp' to 'siz', possible loss of data
pycocotools/_mask.c(7389): warning C4244: '=': conversion from 'Py_ssize_t' to 'siz', possible loss of data