pyg-team / pytorch_geometric

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

Installation instructions don't work #9353

Open jonas-eschle opened 1 month ago

jonas-eschle commented 1 month ago

šŸ˜µ Describe the installation problem

The instructions on how to install pyg with cuda support doesn't work (conda install pyg=*=*cu* -c pyg, taken from https://pytorch-geometric.readthedocs.io/en/latest/notes/installation.html). Tried in a fresh conda environment.

(Using the blocks conda, PyTorch 2.3, cuda 12.1 and linux)

Could not solve for environment specs
The following packages are incompatible
ā””ā”€ pyg * *cu* is installable with the potential options
   ā”œā”€ pyg [2.0.0|2.0.1|2.0.2|2.0.3] would require
   ā”‚  ā””ā”€ python >=3.6,<3.7.0a0 , which can be installed;
   ā”œā”€ pyg [2.0.0|2.0.1|...|2.3.1] would require
   ā”‚  ā””ā”€ python >=3.7,<3.8.0a0 , which can be installed;
   ā”œā”€ pyg [2.0.0|2.0.1|...|2.5.2] would require
   ā”‚  ā””ā”€ python >=3.8,<3.9.0a0 , which can be installed;
   ā”œā”€ pyg [2.0.0|2.0.1|...|2.5.2] would require
   ā”‚  ā””ā”€ python >=3.9,<3.10.0a0 , which can be installed;
   ā”œā”€ pyg [2.1.0|2.2.0|...|2.5.2] would require
   ā”‚  ā””ā”€ python >=3.10,<3.11.0a0 , which can be installed;
   ā”œā”€ pyg [2.1.0|2.2.0|...|2.5.2] would require
   ā”‚  ā””ā”€ pytorch-cuda 11.7.* , which does not exist (perhaps a missing channel);
   ā”œā”€ pyg [2.1.0|2.2.0|...|2.5.2] would require
   ā”‚  ā””ā”€ pytorch-cuda 11.6.* , which does not exist (perhaps a missing channel);
   ā”œā”€ pyg [2.3.0|2.3.1|...|2.5.2] would require
   ā”‚  ā””ā”€ pytorch-cuda 11.8.* , which does not exist (perhaps a missing channel);
   ā””ā”€ pyg [2.4.0|2.5.0|2.5.1|2.5.2] would require
      ā””ā”€ pytorch-cuda 12.1.* , which does not exist (perhaps a missing channel).

Environment

rusty1s commented 1 month ago

Does conda install pyg -c pyg work for you?

rusty1s commented 1 month ago

And what happens if you run conda install pyg -c pyg -c nvidia -c pytorch?

jonas-eschle commented 1 month ago

And what happens if you run conda install pyg -c pyg -c nvidia -c pytorch?

yes, this does the trick! (without the additional channels, it won't work)

chenzhekl commented 1 month ago

Hi, @jonas-eschle how did you make pyg work with PyTorch 2.3? It seems the published pyg package on anaconda does not support PyTorch 2.3 at all.

jonas-eschle commented 1 month ago

I simlpy used conda install pyg -c pyg -c nvidia -c pytorch (FYI, I also have conda-forge as a channel)

chenzhekl commented 1 month ago

Thanks! @jonas-eschle. Unfortunately, this command still does not work for me, where conda complained conflict packages. As a workaround, I installed pyg via PyPI in the end.

girolamogiudice commented 1 month ago

And what happens if you run conda install pyg -c pyg -c nvidia -c pytorch?

Actually this worked for me