进口Manim无法解决塔
当我尝试在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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
请确保您当前正在使用正确的工作环境(请参阅此文档设置环境)。
选择了正确的Python解释器,您可以通过单击右下角的状态栏中显示的当前解释器来更改它,
或使用ctrl+shift+shift+pyth into enter python:选择解释器:选择解释器。
另一种方法:将路径添加到
street.json
中的模块中。例如:希望这对您有帮助
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,
Or use ctrl+shift+p to enter Python:Select Interpreter.
Another way: add the path to the module in your
setting.json
. E.g:Hope this helps you
在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