Tried to execute my first manim scene and got this error. What do I do to get manim running and/or get this module?

  Kiến thức lập trình

Terminal with text:
The default interactive shell is now zsh.
To update your account to use zsh, please run chsh -s /bin/zsh.
For more details, please visit https://support.apple.com/kb/HT208050.
macintosh-air:~ macintoshhd$ manim -p -ql FirstScene.py FirstScene
Traceback (most recent call last):
File “/Users/macintoshhd/.local/bin/manim”, line 5, in
from manim.main import main
File “/Users/macintoshhd/.local/pipx/venvs/manim/lib/python3.12/site-packages/manim/init.py”, line 6, in
import pkg_resources
ModuleNotFoundError: No module named ‘pkg_resources’
macintosh-air:~ macintoshhd$ open /Users/macintoshhd/.local/pipx/venvs/manim/lib/python3.12/site-packages/manim/init.py
macintosh-air:~ macintoshhd$

I installed manim a few minutes ago by entering the commands:
brew install py3cairo ffmpeg
brew install pango pkg-config scipy
pipx install manim
I used pipx instead of pip3 because pip3 didn’t work and the suggestion in the terminal was to use pipx.
Then I ran my manim programm with the line:
manim -p -ql FirstScene.py FirstScene
I don’t really understand what went wrong. I even reinstalled pkg-config because I thought maybe that’s the problem but nothing seems to work. Can you guys help?

New contributor

Poyraz Coşkun is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

LEAVE A COMMENT