Closed CoolRunning closed 3 months ago
oh no! tricky to investigate .... but https://github.com/pytorch/pytorch/issues/89752 might be related? Maybe more a conda/pytorch issue than a pygmo one?
Unfortunately I don't think that mixing conda-forge
with other channels is fully supported (though it may work in practice on some setups).
@CoolRunning isn't it possible to install directly torch from conda-forge
?
I tried installing torch from conda-forge
with no success, but it might still be possible (did not try very hard). The current workaround that I found is installing pygmo with conda and torch with pip, following PyTorch
pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu121
This allows CUDA as well (in the above case: CUDA 12.1). So far this seems workable, so I close the issue for now.
Man what a clusterfuck CUDA is. Glad that you managed to work around it!
Describe the bug Installing pytorch and pygmo in the same conda environment makes torch unusable.
To Reproduce Steps to reproduce the behavior: In a fresh and empy conda environment on Windows execute in the following order:
verify that pytorch works by opening a python console
break torch by installing pygmo
verify that pytorch stopped working in a python console
Screenshots Output of error in my system:
Environment (please complete the following information):
Additional context