krassowski / jupyter-manim

manim cell magic for IPython/Jupyter to show the output video
MIT License
194 stars 11 forks source link

can't build pycario on google colab #28

Closed FrankHui closed 2 years ago

FrankHui commented 3 years ago

Hi, I run pip3 install jupyter_manim, everything is installed successfully but below

Building wheels for collected packages: pycairo Building wheel for pycairo (PEP 517) ... error ERROR: Failed building wheel for pycairo Running setup.py clean for pycairo Failed to build pycairo ERROR: Could not build wheels for pycairo which use PEP 517 and cannot be installed directly

I've checked travis.yml, which I guess what "pip3 install jupyter_manim" follow. Google colab provide linux vm so I think it shouldn't install pycario?

Anyway, Should I run command line by line like this

krassowski commented 2 years ago

This looks like Google Colab user support query - sorry it looks I cannot help with this one!

pwichmann commented 2 years ago

Just add this to colab before you pip install pycairo:

# Required for pycairo
!sudo apt install libcairo2-dev pkg-config python3-dev

I know I am a year late but maybe someone else googles this problem.

sugatoray commented 2 years ago

There is another resource on the same. It basically references the previous comment and states that the said solution works.

:fire: I have personally tried this on colab, and can confirm that it works.

# Required for pycairo
! sudo apt install libcairo2-dev pkg-config python3-dev
! pip install pycairo

cc: @pwichmann Thank you. :rocket: