title: How to install COCO PythonAPI in python3
body: <p>It seems the <a href="https://github.com/cocodataset/cocoapi" rel="noreferrer">COCO PythonAPI</a> only support python2. But peoples do use it in python3 environment.</p>
  
  <p>I tried possible methods to install it, like </p>
  
  <pre><code>python3 setup.py build_ext --inplace
  python3 setup.py install
  </code></pre>
  
  <p>But <code>python3 setup.py install</code> will fail due to <code>coco.py</code> and <code>cocoeval.py</code> containning python2 print function.</p>
  
  <p>Update: solved by updating the <a href="https://github.com/cocodataset/cocoapi" rel="noreferrer">COCO PythonAPI</a> project. Leave this question for people facing the same issue.</p>