manim: manimlib installation error on windows
Upon executing pip install manimlib
, on windows, the following is seen.
Complete output from command C:\Users\sysad\AppData\Local\Programs\Python\Python37-32\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\sysad\\AppData\\Local\\Temp\\pip-install-pe8apgh0\\pycairo\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\sysad\AppData\Local\Temp\pip-record-wtzb25f0\install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build\lib.win32-3.7
creating build\lib.win32-3.7\cairo
copying cairo\__init__.py -> build\lib.win32-3.7\cairo
copying cairo\__init__.pyi -> build\lib.win32-3.7\cairo
copying cairo\py.typed -> build\lib.win32-3.7\cairo
running build_ext
building 'cairo._cairo' extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/
----------------------------------------
Command "C:\Users\sysad\AppData\Local\Programs\Python\Python37-32\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\sysad\\AppData\\Local\\Temp\\pip-install-pe8apgh0\\pycairo\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\sysad\AppData\Local\Temp\pip-record-wtzb25f0\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\sysad\AppData\Local\Temp\pip-install-pe8apgh0\pycairo\
The solution for this is already given in the README.md file, which is to install the wheel for newer version of pycario (1.18.0), but how would that work with pip installation? I tried installing the wheel as given in the instructions, but nevertheless, pip installation fails.
About this issue
- Original URL
- State: open
- Created 5 years ago
- Comments: 16 (3 by maintainers)
Commits related to this issue
- Update pycairo requirement Many issues, such as #535, stem from the odd installation procedure of cairo and pycairo on Windows. By changing the pycairo requirement in requirements.txt, pip will no lo... — committed to yoshiask/manim by yoshiask 5 years ago
- Updated mobject.py, test_copy.py, and conftest.py, from os to pathlib Path (#535) Co-authored-by: kolibril13 <44469195+kolibril13@users.noreply.github.com> — committed to eulertour/manim-3b1b by digitalvirtuoso 4 years ago
建议将操作系统编码改为 utf-8(默认gbk),我win10改编码后安装成功!
As for jpl860, the wheel that worked for me was “pycairo‑1.18.0‑cp37‑cp37m‑win_amd64.whl” I suggest you follow the installation procedure described under “Directly (Windows)” in the main page. The procedure is pretty straightforward and easy to follow, you should be able to install it without much difficulty.