{"id":21549,"library":"manim","title":"Manim","description":"Manim (Mathematical Animation Engine) is a Python library for creating explanatory math videos and animations. Current version is 0.20.1 with monthly releases. Requires Python 3.11+.","status":"active","version":"0.20.1","language":"python","source_language":"en","source_url":"https://github.com/3b1b/manim","tags":["animation","math","video","education"],"install":[{"cmd":"pip install manim","lang":"bash","label":"Install from PyPI"}],"dependencies":[{"reason":"Required for video rendering.","package":"ffmpeg","optional":false},{"reason":"Required for vector graphics rendering.","package":"pycairo","optional":false}],"imports":[{"note":"Importing directly from manim module is the standard way.","wrong":"manim.Scene","symbol":"Scene","correct":"from manim import Scene"},{"note":"","wrong":"","symbol":"Square","correct":"from manim import Square"}],"quickstart":{"code":"from manim import Scene, Square, config\nconfig.frame_height = 8\nconfig.frame_width = 8\n\nclass ExampleScene(Scene):\n    def construct(self):\n        square = Square()\n        self.play(Create(square))\n        self.wait(1)\n","lang":"python","description":"A minimal scene that shows a square."},"warnings":[{"fix":"Use the CairoRenderer if you need the old behavior: manim -r cairo your_scene.py","message":"Manim version 0.19.0 changed the default renderer to OpenGL. If you upgrade from an older version, scenes may look different.","severity":"breaking","affected_versions":">=0.19.0"},{"fix":"Replace `TexTemplate` with `TexTemplateFromFile` or use the new `tex_template` parameter.","message":"The 'TexTemplate' class has been deprecated in favor of 'TexTemplateFromFile' in v0.18.0.","severity":"deprecated","affected_versions":">=0.18.0"},{"fix":"Install a LaTeX distribution or use the `–-tex_template` flag to point to a custom template.","message":"When using LaTeX (Text, Tex, MathTex), you need a working LaTeX distribution installed (e.g., MiKTeX or TeX Live).","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Run `pip install manim` in your Python environment.","cause":"Manim not installed or wrong Python environment.","error":"manim error: No module named 'manim'"},{"fix":"Ensure your scene class has a `construct` method (not `__init__`).","cause":"Scene.construct method must call self.play(). This error occurs if you misspell `construct` or omit it.","error":"AttributeError: 'Scene' object has no attribute 'play'"},{"fix":"Install FFmpeg from https://ffmpeg.org/ and add it to your system PATH.","cause":"FFmpeg not installed or not in PATH.","error":"ManimError: No available writer found"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}