Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation instructions don't work #9353

Open
jonas-eschle opened this issue May 23, 2024 · 7 comments
Open

Installation instructions don't work #9353

jonas-eschle opened this issue May 23, 2024 · 7 comments

Comments

@jonas-eschle
Copy link

😵 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
@rusty1s
Copy link
Member

rusty1s commented May 27, 2024

Does conda install pyg -c pyg work for you?

@rusty1s
Copy link
Member

rusty1s commented May 27, 2024

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

@jonas-eschle
Copy link
Author

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
Copy link
Contributor

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
Copy link
Author

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

@chenzhekl
Copy link
Contributor

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
Copy link

girolamogiudice commented May 31, 2024

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

Actually this worked for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants