skip to Main Content

I was installing Manim by following this guide Manim on Windows and when I ran the quickstart code it didn’t work

from manim import *


class CreateCircle(Scene):
    def construct(self):
        circle = Circle()  # create a circle
        circle.set_fill(PINK, opacity=0.5)  # set the color and transparency
        self.play(Create(circle))  # show the circle on screen

I executed py -m manim project.py CreateCircle on VSCode and it returned Manim could not find ffmpeg, which is required for generating video output. whereas I already installed ffmpeg.

After some research, I found that the IDE could cause problems like this but there was not much informations to solve my problem.
So I went on PyCharm and run the exact same file with the same command and it worked and the video was rendered (miraculously?).

So my questions are why it does not work on VSCode and how I could fix that ?

2

Answers


  1. Chosen as BEST ANSWER

    Actually I only needed to restart VSCode haha


  2. I suppose that you didn’t choose the correct python interpreter.

    You can use shortcuts Ctrl+Shift+P and type "Python: Select Interpreter" to choose the correct python interpreter.

    You can read document about python environment for more details.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search