LightX2V icon indicating copy to clipboard operation
LightX2V copied to clipboard

[Bug] Doesnt see torch module.

Open Sajeas opened this issue 1 month ago • 0 comments

Doesnt see torch module.

启动LightX2V I2V推理... Warn: CUDA_VISIBLE_DEVICES is not set, using default value: , change at shell script or set env variable. 环境变量设置完成! PYTHONPATH: D:\Git\LightX2V; CUDA_VISIBLE_DEVICES: 模型路径: D:\Git\LightX2V\models\Wan2.1-I2V-14B-480P-Lightx2v Traceback (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "D:\Git\LightX2V\lightx2v\infer.py", line 3, in import torch ModuleNotFoundError: No module named 'torch' 推理完成! Press any key to continue . . .

i tried to force reinstall multiple versions of torch and it sees none: pip install torch==2.6.0+cu124 torchvision==0.21.0+cu124 torchaudio==2.6.0+cu124 --index-url https://download.pytorch.org/whl/cu124

python.exe -m pip install torch torchvision torchaudio --force-reinstall --index-url https://download.pytorch.org/whl/cu128 python.exe -m pip install --force-reinstall numpy==1.26.2

python.exe -m pip install torch torchvision --force-reinstall --index-url https://download.pytorch.org/whl/cu130

Sajeas avatar Nov 23 '25 23:11 Sajeas