Manim BrokenPipeError:[Errno 32]管道破裂

2024-09-29 17:14:21 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在尝试在Linux Mint Xfce计算机上安装Manim。每当我尝试执行:

manim example_scenes.py SquareToCircle -pl

我得到这个错误:

Media will be written to ./media/. You can change this behavior with the --media_dir flag.
Unknown input format: 'rawvideo'
                                                                                                                                                                                                                                        


Traceback (most recent call last):
  File "/home/myzel394/PycharmProjects/manimtest/venv/lib/python3.7/site-packages/manimlib/extract_scene.py", line 155, in main
    scene = SceneClass(**scene_kwargs)
  File "/home/myzel394/PycharmProjects/manimtest/venv/lib/python3.7/site-packages/manimlib/scene/scene.py", line 75, in __init__
    self.construct()
  File "example_scenes.py", line 83, in construct
    self.play(ShowCreation(square))
  File "/home/myzel394/PycharmProjects/manimtest/venv/lib/python3.7/site-packages/manimlib/scene/scene.py", line 848, in wrapper
    func(self, *args, **kwargs)
  File "/home/myzel394/PycharmProjects/manimtest/venv/lib/python3.7/site-packages/manimlib/scene/scene.py", line 944, in play
    self.progress_through_animations(animations)
  File "/home/myzel394/PycharmProjects/manimtest/venv/lib/python3.7/site-packages/manimlib/scene/scene.py", line 901, in progress_through_animations
    self.add_frames(self.get_frame())
  File "/home/myzel394/PycharmProjects/manimtest/venv/lib/python3.7/site-packages/manimlib/scene/scene.py", line 1135, in add_frames
    self.file_writer.write_frame(frame)
  File "/home/myzel394/PycharmProjects/manimtest/venv/lib/python3.7/site-packages/manimlib/scene/scene_file_writer.py", line 336, in write_frame
    self.writing_process.stdin.write(frame.tostring())
BrokenPipeError: [Errno 32] Broken pipe

我试着跟着https://github.com/3b1b/manim/issues/669但没有任何效果。我升级了ffmpeg和我所有的其他东西,但我仍然得到同样的错误

我该怎么做才能让它工作


Tags: inpyselfhomevenvlibpackagesline

热门问题