Trying to install pyg through conda and took three days but can't make it work.
😵 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.
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.
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