ewiser icon indicating copy to clipboard operation
ewiser copied to clipboard

Installation issue with torch-scatter

Open Aditi138 opened this issue 3 years ago • 3 comments

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?

Aditi138 avatar Feb 19 '22 05:02 Aditi138

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>.

JoshC8C7 avatar Feb 25 '22 01:02 JoshC8C7

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.

yyqi17 avatar Sep 20 '22 10:09 yyqi17

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

Max-Lovell avatar Jan 25 '24 19:01 Max-Lovell