Error loading "g:\ComfyUI\.venv\Lib\site-packages\torch\lib\torch_python.dll" or one of its dependencies
- Dominant language
- Python
- Stars
- 133k
- Forks
- 15.7k
- Avg merge
- 1d 6h
- Merged PRs (30d)
- 155
Description
### Your question

### Logs
```powershell
G:\ComfyUI>python server.py
Traceback (most recent call last):
File "G:\ComfyUI\server.py", line 6, in
import nodes
File "G:\ComfyUI\nodes.py", line 1, in
import torch
File "g:\ComfyUI\.venv\Lib\site-packages\torch\__init__.py", line 148, in
raise err
OSError: [WinError 126] 找不到指定的模块。 Error loading "g:\ComfyUI\.venv\Lib\site-packages\torch\lib\torch_python.dll" or one of its dependencies.
```
### Other
_No response_
Contributor guide
Research direction
Start with server.py and nodes.py, then reproduce the PowerShell command shown in the traceback. Inspect the torch import failure and its reported torch_python.dll dependency; done means ComfyUI starts past the import without WinError 126.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, pytorch
- Domain
- backend, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100