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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation issue with torch-scatter #14

Open
Aditi138 opened this issue Feb 19, 2022 · 3 comments
Open

Installation issue with torch-scatter #14

Aditi138 opened this issue Feb 19, 2022 · 3 comments

Comments

@Aditi138
Copy link

Hello,

I am trying the exact same commands specified in the README but I run into an issue in the step
pip install torch-scatter torch-sparse -f https://pytorch-geometric.com/whl/torch-1.6.0+cu102.html

I am getting the following error:
/anaconda2/envs/ewiser/lib/python3.7/site-packages/torch/include/ATen/core/interned_strings.h:415:1: note: in expansion of macro ‘FORALL_NS_SYMBOLS’
FORALL_NS_SYMBOLS(DEFINE_SYMBOL)
^~~~~~~~~~~~~~~~~
error: command 'gcc' failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: anaconda2/envs/ewiser/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-kouq5f1x/torch-sparse_cd2910acb4354bf6868ba6699efa7d35/setup.py'"'"'; file='"'"'/tmp/pip-install-kouq5f1x/torch-sparse_cd2910acb4354bf6868ba6699efa7d35/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f

I looked online and the solution mentioned was using python binaries (the same command as above) but that doesn't seem to be working, could you please help?

@JoshC8C7
Copy link

JoshC8C7 commented Feb 25, 2022

I couldn't get this to work either; quick workaround for this is to use pre-built wheels - they're available at: https://data.pyg.org/whl/torch-1.9.0+${CUDA}.html - so for you it'll be here then just pick your python/OS, copy the link address and do pip install <address>.

@yyqi17
Copy link

yyqi17 commented Sep 20, 2022

I also encountered this problem. This can be solved by downloading torch-scatter.whl and torch-sparse.whl from https://pytorch-geometric.com/whl/torch-1.6.0+cu102.html, and install them manually.

@Max-Lovell
Copy link

Max-Lovell commented Jan 25, 2024

pip install torch-scatter==2.0.6 torch-sparse==0.6.9 -f https://data.pyg.org/whl/torch-1.6.0%2Bcu101.html worked for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants