pyg-team / pytorch_geometric

Graph Neural Network Library for PyTorch
https://pyg.org
MIT License
21.35k stars 3.66k forks source link

OSError: torch_scatter/_version_cpu.so: undefined symbol: _ZN5torch3jit17parseSchemaOrNameERKSs #9496

Open Lili-Cao opened 4 months ago

Lili-Cao commented 4 months ago

😵 Describe the installation problem

I have pytorch 2.3.1 cpu_generic_py310ha4c588e_0 conda-forge installed and I want to use torchdrug. I have installed

pip install torch_geometric pip install ninja wheel pip install git+https://github.com/pyg-team/pyg-lib.git pip install torch-scatter -f https://data.pyg.org/whl/torch-2.3.0+cpu.html pip install torch-scatter torch-sparse -f https://data.pyg.org/whl/torch-2.3.0+cpu.html pip install torch-cluster -f https://data.pyg.org/whl/torch-2.3.0+cpu.html pip install torch-spline-conv -f https://data.pyg.org/whl/torch-2.3.0+cpu.html pip install torchdrug and get the OS error when import it

Could you please tell me how to fix it?

image

Environment

Lili-Cao commented 4 months ago

seems like I cannot import any of the additional libraries

rusty1s commented 2 months ago

You need to install PyTorch from the official source, not from conda-forge.