manim icon indicating copy to clipboard operation
manim copied to clipboard

Help to install manim

Open Steff-san opened this issue 5 years ago • 6 comments

I tried to install manin for linux but i get this error: Building wheels for collected packages: pycairo Building wheel for pycairo (setup.py) ... error ERROR: Command errored out with exit status 1: command: /usr/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-95eiqbht/pycairo/setup.py'"'"'; file='"'"'/tmp/pip-install-95eiqbht/pycairo/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-vgeh7_q5 cwd: /tmp/pip-install-95eiqbht/pycairo/ Complete output (17 lines): running bdist_wheel running build running build_py creating build creating build/lib.linux-x86_64-3.7 creating build/lib.linux-x86_64-3.7/cairo copying cairo/init.py -> build/lib.linux-x86_64-3.7/cairo running build_ext building 'cairo._cairo' extension creating build/temp.linux-x86_64-3.7 creating build/temp.linux-x86_64-3.7/cairo x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPYCAIRO_VERSION_MAJOR=1 -DPYCAIRO_VERSION_MINOR=16 -DPYCAIRO_VERSION_MICRO=1 -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/python3.7m -c cairo/device.c -o build/temp.linux-x86_64-3.7/cairo/device.o cairo/device.c:30:10: fatal error: Python.h: No existe el archivo o el directorio #include <Python.h> ^~~~~~~~~~ compilation terminated. error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

ERROR: Failed building wheel for pycairo Running setup.py clean for pycairo Failed to build pycairo Installing collected packages: pycairo Attempting uninstall: pycairo Found existing installation: pycairo 1.16.2 ERROR: Cannot uninstall 'pycairo'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.

Note: In windous i have got a similar errror.

Steff-san avatar Mar 22 '20 17:03 Steff-san

I think you're new to Github. It's considered bad practice to have an uninformative title and issue. We need a bit more info from you. What OS are you using, and what were you trying to do?

Aathish04 avatar Mar 24 '20 16:03 Aathish04

I think you're new to Github. It's considered bad practice to have an uninformative title and issue. We need a bit more info from you. What OS are you using, and what were you trying to do?

he is using linux and was trying download the repo requirements

Nikhil0504 avatar Mar 26 '20 10:03 Nikhil0504

I have the same problem on Windows. I also tried to install pycairo individually from https://www.lfd.uci.edu/~gohlke/pythonlibs/#pycairo but for every single wheel, it's saying that: pycairo-1.19.1-cp38-cp38-win_amd64.whl is not a supported wheel on this platform. Can you help me, please?

ralako avatar Apr 15 '20 06:04 ralako

Tengo el mismo problema en Windows. También intenté instalar pycairo individualmente desde https://www.lfd.uci.edu/~gohlke/pythonlibs/#pycairo pero para cada rueda, dice que: pycairo-1.19.1-cp38-cp38-win_amd64.whl No es una rueda compatible en esta plataforma. ¿Puedes ayudarme por favor?

a mi tambien me paso lo mismo, lograste solucionar tu problema?

Luminerr avatar Jun 07 '20 02:06 Luminerr

I have the same problem on Windows. I also tried to install pycairo individually from https://www.lfd.uci.edu/~gohlke/pythonlibs/#pycairo but for every single wheel, it's saying that: pycairo-1.19.1-cp38-cp38-win_amd64.whl is not a supported wheel on this platform. Can you help me, please?

solution: platform : windows 10 firstly, check pip type.

pip debug --verbose

next, select the corresponding version from https://www.lfd.uci.edu/~gohlke/pythonlibs/#pycairo . and goto manim-master fold by cmd

pip install c\adminisrator(manim-master fold address)\pycairo-1.19.1-cp38-cp38-win_amd64.whl

this problem will be solved.

Lori2020-art avatar Apr 14 '21 02:04 Lori2020-art

On my ubuntu18.04, i tried sudo apt install python<your python version>-devand fixed it.

Tabbleman avatar Feb 15 '23 07:02 Tabbleman