pytorch_geometric icon indicating copy to clipboard operation
pytorch_geometric copied to clipboard

Installation instructions don't work

Open jonas-eschle opened this issue 1 year ago • 7 comments

😵 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

* OS: Ubuntu
* Python version: 3.11
* How you installed PyTorch and PyG (`conda`, `pip`, source): conda

jonas-eschle avatar May 23 '24 12:05 jonas-eschle

Does conda install pyg -c pyg work for you?

rusty1s avatar May 27 '24 07:05 rusty1s

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

rusty1s avatar May 27 '24 07:05 rusty1s

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)

jonas-eschle avatar May 27 '24 14:05 jonas-eschle

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.

chenzhekl avatar May 28 '24 09:05 chenzhekl

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

jonas-eschle avatar May 28 '24 09:05 jonas-eschle

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.

chenzhekl avatar May 28 '24 10:05 chenzhekl

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

Actually this worked for me

girolamogiudice avatar May 31 '24 22:05 girolamogiudice