#VSCode doesn't detect manim library

15 messages ยท Page 1 of 1 (latest)

random sphinx
#

seems to be some pylance error but I don't know how to fix it

gleaming haven
# random sphinx

Are you able to run the script normally with python? If so, it's possible that Pylance isn't able to locate manim in whatever interpreter it has (this is if you have multiple Python versions).

If you know what version you installed manim to, you can select it in VSCode by opening the Command Palette (Ctrl + Shift + P), typing "Select Interpreter" and choosing the correct option from the panel that comes up. Here's an example of how that would look.

random sphinx
#

I have python 3.12.5 which all scripts work on

#

when compiled, it shows this message: ModuleNotFoundError: No module named 'manim.animation'; 'manim' is not a package

#

I just installed openai-whisper library and it worked instantly, but I can't get the manim to work

gleaming haven
random sphinx
#

yes

#

changed the name and it's fixed

#

but it still doesnt recognize this part

#

hm maybe its unnecessary or the library changed

#

thanks anyway ๐Ÿ™‚

gleaming haven
# random sphinx

yeah, that doesn't seem to be a thing according to the docs
it's manim.animation.creation.Write

random sphinx
#

thanks ๐Ÿ’Ÿ