ModuleNotFoundError: No module named 'torch' #458

Open
opened 2023-12-03 08:03:49 +00:00 by Touhou2006 · 1 comment

It says when I import torch on Visual Studio, it says true but when I use the start.bat it does not work.
Any fix?

Traceback (most recent call last):
  File "E:\ai-voice-cloning\ai-voice-cloning\src\main.py", line 11, in <module>
    from utils import *
  File "E:\ai-voice-cloning\ai-voice-cloning\src\utils.py", line 28, in <module>
    import torch
ModuleNotFoundError: No module named 'torch'
Press any key to continue . . .
It says when I import torch on Visual Studio, it says true but when I use the start.bat it does not work. Any fix? ``` Traceback (most recent call last): File "E:\ai-voice-cloning\ai-voice-cloning\src\main.py", line 11, in <module> from utils import * File "E:\ai-voice-cloning\ai-voice-cloning\src\utils.py", line 28, in <module> import torch ModuleNotFoundError: No module named 'torch' Press any key to continue . . . ```

Hey! Are you sure it's not a conflict of environment? Like you're on the right environment when launching your script in VScode, but when you run the start.bat you run it from the base environment and thus torch is not installed?

Hey! Are you sure it's not a conflict of environment? Like you're on the right environment when launching your script in VScode, but when you run the start.bat you run it from the base environment and thus torch is not installed?
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: mrq/ai-voice-cloning#458
No description provided.