Recently playing detectron2, need pycocotools >= 2.0.2, python version 3.7, installation error
ERROR: Error expected str, bytes or os.PathLike object, not NoneType while executing command pip subprocess to install build dependencies
It is found that pycocotools updated to 2.0.4. The degraded version can be installed normally:
pip install pycocotools==2.0.2