Cannot install torch-geometric via requirement.txt
See original GitHub issueThe example requirement.txt is as below:
torch==1.3.1
torch-scatter==1.4.0
torch-sparse==0.4.3
torch-cluster==1.4.5
torch-geometric==1.3.2
Cannot successfully install the above packages via pip install -r requirement.txt
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple Collecting torch==1.3.1 (from -r requirement.txt (line 1)) Downloading https://pypi.tuna.tsinghua.edu.cn/packages/f9/34/2107f342d4493b7107a600ee16005b2870b5a0a5a165bdf5c5e7168a16a6/torch-1.3.1-cp37-cp37m-manylinux1_x86_64.whl (734.6MB) |ββββββββββββββββββββββββββββββββ| 734.6MB 71kB/s Collecting torch-scatter==1.4.0 (from -r requirement.txt (line 4)) Downloading https://pypi.tuna.tsinghua.edu.cn/packages/b8/c3/8bad887ffa55c86f120ef5ae252dc0e357b3bd956d9fbf45242bacc46290/torch_scatter-1.4.0.tar.gz ERROR: Command errored out with exit status 1: command: /home/minglu1/anaconda3/bin/python -c βimport sys, setuptools, tokenize; sys.argv[0] = β"β"β/tmp/pip-install-8nqd722w/torch-scatter/setup.pyββ'ββ; file=ββ'ββ/tmp/pip-install-8nqd722w/torch-scatter/setup.pyββ'ββ;f=getattr(tokenize, β"βββopenβββββ, open)(file);code=f.read().replace(βββ"β\r\nββ'ββ, β"β"β\nββ'ββ);f.close();exec(compile(code, file, β"βββexecβββ"β))β egg_info --egg-base pip-egg-info cwd: /tmp/pip-install-8nqd722w/torch-scatter/ Complete output (5 lines): Traceback (most recent call last): File β<string>β, line 1, in <module> File β/tmp/pip-install-8nqd722w/torch-scatter/setup.pyβ, line 3, in <module> import torch ModuleNotFoundError: No module named βtorchβ ---------------------------------------- ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Is this an expected behavior?
Issue Analytics
- State:
- Created 4 years ago
- Comments:13 (4 by maintainers)
requirements.txt
should work just fine when making use of our wheels, e.g.:That is absolutely correct. While the installation of
torch-geometric
does not require the installation of these packages, you can not install bothtorch
andtorch-scatter
via a singlepip
command. This is a current limitation, sorry π¦