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
"Building wheel for torch-sparse (setup.py) ... error" when installing torch_sparse via pip3 #5015
Comments
I encountered the same question with you and i solved it using this command: |
It works! Thanks! But still don't know why torch-sparse-0.6.14 causes this trouble. |
check 'https://data.pyg.org/whl/index.html'. It only has |
We only build new versions for the two latest PyTorch releases. That‘s why 0.6.13 is the last version for PyTorch 1.10. |
wonderful! It help me a lot! Thanks for your goodness |
In my environment, I had pytorch 2.0.1 with cuda 11.8 on windows. And none of the provided comment worked for me. Then I found the comment on PyG installation guide: https://pytorch-geometric.readthedocs.io/en/latest/install/installation.html pip install torch_scatter torch_sparse torch_cluster torch_spline_conv -f https://data.pyg.org/whl/torch-2.0.0+cu118.html This worked just fine |
I have tried to install But still I could not load torch_sparse OSError Traceback (most recent call last) File /media/ssrc/DataBase/cmu/lib/python3.8/site-packages/torch_sparse/init.py:19 File /media/ssrc/DataBase/cmu/lib/python3.8/site-packages/torch/_ops.py:852, in _Ops.load_library(self, path) File /usr/lib/python3.8/ctypes/init.py:373, in CDLL.init(self, name, mode, handle, use_errno, use_last_error, winmode) OSError: libtorch_cuda_cpp.so: cannot open shared object file: No such file or directory |
What happens if you run via
|
I found the solution here. |
Sooooooo useful to me! @downeykking |
😵 Describe the installation problem
When I was installing torch-sparse through the command:
pip install torch-sparse -f https://pytorch-geometric.com/whl/torch-1.10.0+cu113.html,
I was totally confused by the following error:
Before this, I had just fixed a warning saying 'Your compiler (g++ 4.8.5) may be ABI-incompatible with PyTorch!
Please use a compiler that is ABI-compatible with GCC 5.0 and above', by 'conda install -c conda-forge gxx=9.4.0 gcc=9.4.0'. However, I am totally stuck with the above error. Hope anyone could help!
If you need any other info, please let me know.
Environment
conda
,pip
, source):pipThe text was updated successfully, but these errors were encountered: