SHI-Labs / Matting-Anything

Matting Anything Model (MAM), an efficient and versatile framework for estimating the alpha matte of any instance in an image with flexible and interactive visual or linguistic user prompt guidance.
https://arxiv.org/abs/2306.05399
MIT License
615 stars 49 forks source link

Failed to build pycocotools - Python.h: No such file or directory #6

Closed chrisbward closed 1 year ago

chrisbward commented 1 year ago

Hi I've set up a pyenv for 3.9 and followed the instructions, but has since failed, so I will investigate

chrisbward commented 1 year ago

Okay, after following instructions (here)[https://stackoverflow.com/questions/21530577/fatal-error-python-h-no-such-file-or-directory], I was able to build pycocotools on Ubuntu with;

apt-get install python3.9-dev

Please update docs!

chrisjuniorli commented 1 year ago

We use anaconda to create virtual python environment in the docs and it's usually more sufficient / stable than pyenv. Pyenv is not fully tested yet on our side.

chrisbward commented 1 year ago

Well, it worked. It's working in pyenv