我使用的是Ubuntu (22.04LTS版本),并遵循来自https://docs.manim.community/en/stable/installation/linux.html的安装文档,但是当我试图运行scene.py CreateCircle的测试代码时,我得到如下信息:
“没有找到'manim‘指挥部,你的意思是:.”
有人知道怎么解决这个问题吗?
测试代码(来自https://docs.manim.community/en/stable/tutorials/quickstart.html):
from manim import *
class CreateCircle(Scene):
def construct(self):
circle = Circle() # create a circle
circle.set_fill(PINK, opacity=0.5) # set the color and transparency
self.play(Create(circle)) # show the circle on screen我在终端中的文件目录中运行了以下内容:
manim -pql scene.py CreateCircle(新使用Ubuntu)
发布于 2022-06-18 23:10:54
默认情况下,Ubuntu的路径上没有Python的bin文件夹。您必须使用python -m manim,或者找到Python文件夹并将其放在路径上。
https://stackoverflow.com/questions/72666422
复制相似问题