#manim
#manim
Вопрос:
$ python3 -m manim example_scenes.py WriteStuff -pl
Media will be written to /Users/pi/Documents/ManimInstall/manim/media/. You can change this behavior with the --media_dir flag.
sh: latex: команда не найдена
Traceback (most recent call last):
File "/Users/pi/Documents/ManimInstall/manim/manimlib/extract_scene.py", line 155, in main
scene = SceneClass(**scene_kwargs)
File "/Users/pi/Documents/ManimInstall/manim/manimlib/scene/scene.py", line 75, in __init__
self.construct()
File "example_scenes.py", line 100, in construct
example_text = TextMobject(
File "/Users/pi/Documents/ManimInstall/manim/manimlib/mobject/svg/tex_mobject.py", line 147, in __init__
SingleStringTexMobject.__init__(
File "/Users/pi/Documents/ManimInstall/manim/manimlib/mobject/svg/tex_mobject.py", line 42, in __init__
file_name = tex_to_svg_file(
File "/Users/pi/Documents/ManimInstall/manim/manimlib/utils/tex_file_writing.py", line 21, in tex_to_svg_file
dvi_file = tex_to_dvi(tex_file)
File "/Users/pi/Documents/ManimInstall/manim/manimlib/utils/tex_file_writing.py", line 69, in tex_to_dvi
raise Exception(
Exception: Latex error converting to dvi. See log output above or the log file: /Users/pi/Documents/ManimInstall/manim/media/Tex/c0bd21d57323a926.log
Комментарии:
1. Пожалуйста, объясните, что вы пробовали, коротким предложением и постарайтесь не усложнять задачу другим людям, помогающим вам.
Ответ №1:
Вы установили Latex?
Ошибка
sh: latex: command not found
говорит, что manim пытается найти, latex
но не смог его найти. Возможно, вы не установили latex.
Предполагая, что вы используете Ubuntu или Debian, запустите,
sudo apt install texlive-full
чтобы установить latex, и тогда все должно работать.