3b1b / 3b1b/manim

problem with running animations from out of main manim Folder (navigating to .py file and run)

未關閉
#1,300 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Python
星號
93.9k
分支
7.7k
平均合併
2 天 13 小時
30 天內合併 PR
4

描述

EDIT: NOTHING important here.. this appeared not to be an issue but a misunderstanding of how manim works..

i was running manim perfectly even outside manim folder just by referencing the location like this:
`python -m manim "Destination\To\ManimScene.py" sceneName`

but today i just couldn't run anything, and it kept saying "no module named manim", fix this problem and now i just can't run out of manim folder like this screen shot

![image](https://user-images.githubusercontent.com/65380552/103315663-ee2fe780-4a2e-11eb-8296-2976de176403.png)

to the right is running (WriteStuff) example through manim folder cmd.
to the left is running (WriteStuff) example through navigating to manim folder inside cmd.
as you see, the right runs perfectly but i can't run the left.

i reinstalled pycairo multiple times and none worked, tried to install "libcairo-2" by itself but i just couldn't find the right version for python 3.8.6, there simply nothing on the internet for "libcairo-2" specifically.

![image](https://user-images.githubusercontent.com/65380552/103316178-5c28de80-4a30-11eb-8cae-6483e37cd897.png)

so why is this happening? and what is the solution?

貢獻指南

這個儲存庫沒有索引到貢獻指南

研究方向

該 issue 描述了在主目錄外執行 manim 的問題。先檢查 manim CLI 的 entry point 以及它如何解析模組路徑。查看命令列介面程式碼和 import 系統,看看為何會出現「no module named manim」。從不同目錄執行 scene 來重現這個錯誤。

由索引模型根據 Issue 內容生成。

評估

領域
cli
Issue 類型
缺陷
難度
2/5
預估耗時
1-3 小時
活躍度
停滯
描述清晰度
基本清楚
新手友好度
45/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。