pyg-team / pytorch_geometric

Graph Neural Network Library for PyTorch
https://pyg.org
MIT License
21k stars 3.62k forks source link

Trying to install pyg through conda downgrades torch to CPU #9210

Open SuhasSrinivasan opened 5 months ago

SuhasSrinivasan commented 5 months ago

😵 Describe the installation problem

After using conda for pytorch installation, trying to install pyg through the official guide.

$ conda install pyg -c pyg
Channels:
 - pyg
 - defaults
 - nvidia
 - pytorch
Platform: linux-64

...

The following packages will be SUPERSEDED by a higher-priority channel:

  pytorch            pytorch::pytorch-2.2.2-py3.12_cuda11.~ --> pkgs/main::pytorch-2.2.0-cpu_py312hb9e5694_0

The following packages will be DOWNGRADED:

  pytorch-mutex                                    1.0-cuda --> 1.0-cpu
  torchaudio                              2.2.2-py312_cu118 --> 2.2.0-py312_cpu
  torchvision                            0.17.2-py312_cu118 --> 0.17.0-py312_cpu

Environment

rusty1s commented 5 months ago

Can you try to install via

conda install pyg=*=*cu* -c pyg
SuhasSrinivasan commented 5 months ago

Hi Matthias, thank you for reviewing the issue. I had been struggling with multiple dependency issues for RoseTTAFold2NA, so to make things simple i.e., I split the deep learning libraries to be handled by pip.

I can confirm that the following works

pip install torch==2.2.1 torchvision torchaudio torchdata torch_geometric

Sorry cannot try the conda install now, but wanted to bring this to your attention as a genuine problem.