-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Cannot install torch-geometric via requirement.txt #861
Comments
/cc @rusty1s |
You cannot put both |
Is it possible to add |
Per my understanding, the @rusty1s Please correct me if my understanding is wrong. |
That is absolutely correct. While the installation of |
No, worry. It's okay. |
Have you installed success? |
Please install |
Is there a solution for the requirements.txt problem yet? |
|
Hi, I tried the commands above, but it does not work for CPU version of geometric. My requirements.txt looks like this
I got this error:
|
You need to specify the versioning when using older versions of PyTorch, see here:
|
Works like a magic. Thanks! |
@rusty1s I still get the same error as @sunshineatnoon in a Docker container (after running
When it gets to installing
|
Can you confirm that the path |
The example requirement.txt is as below:
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 "", line 1, in
File "/tmp/pip-install-8nqd722w/torch-scatter/setup.py", line 3, in
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?
The text was updated successfully, but these errors were encountered: