我是python的新手(和一般的编码),我正试图让Manim在Mac上运行。我一直遵循http://bhowell4.com/manic-install-tutorial-for-mac/
上的指示我已经准备好尝试通过运行以下动画来测试动画了:
python3 extract_scene.py example_scenes.py SquareToCircle -pl
这是我收到的错误消息:
>
/Users/rdownie/animations/manim/venv/lib/python3.7/site-packages/pydub/utils.py:165: RuntimeWarning: Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work
warn("Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work", RuntimeWarning)
Traceback (most recent call last):
File "extract_scene.py", line 163, in
main()
TypeError: main() missing 1 required positional argument: 'config'
非常感谢您的帮助!
答案 0 :(得分:0)
是
python3 -m manim example_scenes.py SquareToCircle -pl
或
python3 manim.py example_scenes.py SquareToCircle -pl
如果您通过pip(pip install manimlib
)安装manim,则:
manim example_scenes.py SquareToCircle -pl
答案 1 :(得分:0)
您需要先安装ffmpeg,只需打开终端并运行
brew install ffmpeg