rusty1s / pytorch_scatter

PyTorch Extension Library of Optimized Scatter Operations
https://pytorch-scatter.readthedocs.io
MIT License
1.5k stars 178 forks source link

Compatibility issue with my torch built from source with torch-scatter installed via pip #415

Closed zlwu92 closed 5 months ago

zlwu92 commented 5 months ago

Hi,

I am encountering a compatibility issue with my PyTorch built from source https://github.com/pytorch/pytorch/blob/v2.1.0, then my installed pytorch version is image my cuda version is 12.0 Then I use pip to install torch-scatter, torch-sparse, torch-cluster via pip install torch-scatter -f https://pytorch-geometric.com/whl/torch-2.1.0+cu121.html \ pip install torch-sparse -f https://pytorch-geometric.com/whl/torch-2.1.0+cu121.html \ pip install torch-cluster -f https://pytorch-geometric.com/whl/torch-2.1.0+cu121.html \

Then I write a python test code to run a GNN model with import torch_cluster, torch_sparse, torch_scatter

It gives me an error with image What could be the reason for this problem? Could you please give me some guidance? Thanks.

rusty1s commented 5 months ago

If you install PyTorch from source, you also need to install the extensions from source, e.g., by just dropping the -f argument.