Install pycocotools on Xavier
First, install pycocotools from tsinghua pip source:
pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple pycocotools
Then an error occurred during building Pillow:
The headers or library files could not be found for jpeg, a required
dependency when compiling Pillow from source.
Please see the install instructions at:
https://pillow.readthedocs.io/en/latest/installation.html
Solution: Install required jpeg package:
sudo apt-get install libjpeg-dev zlib1g-dev
Then rerun pycocotools installation:
pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple pycocotools