SapienzaNLP / ewiser

A Word Sense Disambiguation system integrating implicit and explicit external knowledge.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Installation issue with torch-scatter

Aditi138 opened this issue · comments

commented

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?

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

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.

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