[Python] Why is python saying "No module named 'manim'" but the manim command works fine?

Discussão em 'Python' iniciado por Stack, Junho 6, 2025.

  1. Stack

    Stack Membro Participativo

    I'm trying to learn manim and in vscode, whenever I try running a program in vscode with manim sideview, or the program in a terminal with python3 filename.py it always says No module named 'manim'. Also, just in case this helps, I am on arch linux.

    I'm just gonna use this example program here to show what I've tried:

    from manim import *

    class TestBelow(Scene):
    def construct(self):
    c = Circle()
    c.set_fill(BLUE, opacity=0.8)
    t = text("Circle").next_to(c, DOWN)

    self.play(Write(c), Write(t))
    self.wait(2)


    Now, when running manim -pqh filename.py TestBelow it works fine, but when running that with actual python, it always says No module named manim.

    Continue reading...

Compartilhe esta Página