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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trying to install pyg through conda and took three days but can't make it work. #9253

Open
v-tuenv opened this issue Apr 29, 2024 · 2 comments

Comments

@v-tuenv
Copy link

v-tuenv commented Apr 29, 2024

馃樀 Describe the installation problem

Anyone help me I want to install pytoch2* with any version of pyg. But it always conflct when try conda install pyg -c pyg. I tried torch 2.3, 2.2, 2.1, 2.0 and all of them didn't work


Error: conda instal pyg -c pyg
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: /
Found conflicts! Looking for incompatible packages.
This can take several minutes. Press CTRL-C to abort.

@v-tuenv v-tuenv changed the title Trying to install pyg through conda and make three days but can't make it work. Trying to install pyg through conda and took three days but can't make it work. Apr 29, 2024
@toxfu
Copy link

toxfu commented Apr 29, 2024

Use libmamba collection package: conda config --set solver libmamba

pytorch 2.3 is not supported yet.

If you use the latest version of this library, it should be compatible with pytorch 2.2.*. And if you are interested in installing the GPU version try this command conda install 'pyg=*=*cu*' -c pyg.

If it still doesn't work, it's because the error code you have says that it has incompatibility with some packages. Using libmamba will better specify the packages that have conflicts, in addition to being much faster.

@Divelix
Copy link

Divelix commented May 5, 2024

I managed to make it work, just install torch 2.3 via conda (mamba is also fine), but pyg via pip like this:

conda install pytorch torchvision torchaudio pytorch-cuda=12.1 -c pytorch -c nvidia
pip install torch_geometric

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

3 participants