进口Manim无法解决塔

发布于 2025-02-04 00:52:55 字数 227 浏览 2 评论 0原文

当我尝试在VSCODE上执行此代码时,它会给我这个错误:导入manim无法解决。我正在使用Python 3.10.4和Manim的最后一个版本

from manim import *

class trabalho(Scene):
    def construct(self):

        plane = NumberPlane()
        self.add(plane)

When I try to execute this code on VsCode it gives me this error: Import Manim could not be resolved Pylance. I'm using Python 3.10.4 and Manim's last version

from manim import *

class trabalho(Scene):
    def construct(self):

        plane = NumberPlane()
        self.add(plane)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

喜爱纠缠 2025-02-11 00:52:55

请确保您当前正在使用正确的工作环境(请参阅此文档设置环境)。

选择了正确的Python解释器,您可以通过单击右下角的状态栏中显示的当前解释器来更改它,

“在此处输入映像”

或使用ctrl+shift+shift+pyth into enter python:选择解释器:选择解释器。

另一种方法:将路径添加到street.json中的模块中。例如:

"python.analysis.extraPaths":[
    // The folder path where the custom module is located, and multiple paths can be added (the following is just an example)
    "E:\\myfolder\\homework\\one\\Person_reID_baseline_pytorch-master" ,
    "E:\\...\\...\\...\\..."     
]

希望这对您有帮助

Please make sure that you are currently using the correct working environment (refer to this document for setting the environment).

and the correct python interpreter is selected, you can change it by clicking on the current interpreter displayed in the status bar in the lower right corner,

enter image description here

Or use ctrl+shift+p to enter Python:Select Interpreter.

enter image description here

Another way: add the path to the module in your setting.json. E.g:

"python.analysis.extraPaths":[
    // The folder path where the custom module is located, and multiple paths can be added (the following is just an example)
    "E:\\myfolder\\homework\\one\\Person_reID_baseline_pytorch-master" ,
    "E:\\...\\...\\...\\..."     
]

Hope this helps you

回眸一笑 2025-02-11 00:52:55

在vscode中尝试一下:
(1)CTRL-SHIFT-P
(2)在搜索框中,输入Python,然后选择Python:选择解释器
(3)选择python 3.10.4或任何人匹配您的方向

Try this in VsCode:
(1) ctrl-shift-p
(2) In search box, type python and then select Python: Select Interpreter
(3) select Python 3.10.4 or any one matches your verion

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文