运行
python setup.py build develop
时,报错为setuptools.sandbox.UnpickleableException
经过定位发现在halpecocotools的安装中显示gcc: error: ../common/maskApi.c: No such file or directory。这是由于之前安装的cython版本不合适导致的,需要降低cython版本:
pip install Cython==0.29.36
参考:Error running `python setup.py build develop` in Linux (Arch) · Issue #1002 · MVIG-SJTU/AlphaPose (github.com)pycocotools 2.0.3 安装失败:gcc: error: ../common/maskApi.c: No such file or directory_m0F的博客-CSDN博客