[英]How can I run my program when I already had the module and the error said: ModuleNotFoundError?
I am trying to run a demo.py from the github.我正在尝试从 github 运行 demo.py。 And the error I met is ModuleNotFoundError: No module name 'torch'.
我遇到的错误是 ModuleNotFoundError: No module name 'torch'。 Then I install it by using the cmd: pip install torch and the cmd said that Requirement already satisfied: torch in C:\\users...\\site-packages(1.7.0).
然后我使用 cmd: pip install torch 安装它,cmd 说 Requirement already meet: torch in C:\\users...\\site-packages(1.7.0)。 My question is what could I do to run my program?
我的问题是我可以做什么来运行我的程序?
maybe you did not download python with the right way也许你没有用正确的方式下载python
go to the cmd
and write py
and see if that works转到
cmd
并编写py
,看看是否有效
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.