尝试执行我的第一个 manim 场景并收到此错误。我该怎么做才能让 manim 运行和/或获得这个模块?

问题描述 投票:0回答:1

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

我几分钟前通过输入命令安装了 manim:

brew install py3cairo ffmpeg,

brew install pango pkg-config scipy

pipx install manim

我使用 pipx 而不是 pip3,因为 pip3 不起作用,并且终端中的建议是使用 pipx。 然后我用以下行运行我的 manim 程序:

manim -p -ql FirstScene.py FirstScene

我真的不明白出了什么问题。我什至重新安装了 pkg-config 因为我认为这可能是问题所在,但似乎没有任何效果。你们能帮忙吗?

因格式错误而进行编辑。 ETA:另外,我是 Python 新手,并且使用终端,所以这可能只是我什么都不理解。

python terminal modulenotfounderror manim
1个回答
0
投票

我自己解决了!我只是没有安装setuptools。 (我实际上也没有安装Python。)对于任何在同一问题上寻求建议的人,我找到了这个网站:https://studygyaan.com/blog/troubleshooting-no-module-named-pkg_resources-in-蟒蛇

© www.soinside.com 2019 - 2024. All rights reserved.