MSCOCO-PythonAPI编译
git clone git@github.com:cocodataset/cocoapi.git
cd PythonAPI
编译,运行需保证为pyhon3.5及以上环境,进入python3虚拟环境
make
pip install matplotlib
sudo apt install python3-tk
报错1:
解决:pip install cython
报错2:
解决:sudo apt install python3-dev
报错3:
ImportError: /home/liuliang/cocoapi/PythonAPI/pycocotools/_mask.so: undefined symbol: _Py_ZeroStruct
解决:python3.5,执行pip install Cython