-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Unable to install torch-scatter #400
Comments
Can you show me the CUDA compile error? |
error: command '/usr/local/cuda/bin/nvcc' failed with exit status 1 |
The actual error should have been logged before |
something like these: /home/xingjian.zxj/.local/lib/python2.7/site-packages/torch/include/ATen/Functions.h:3317:143: required from here |
When I try to use pytorch_scatter source code to install, it gave me as following: /usr/local/include/c++/6.3.0/tuple:484:1: error: body of constexpr function ‘static constexpr bool std::_TC<, _Elements>::_MoveConstructibleTuple() [with _UElements = {std::tuple<at::Tensor, at::Tensor, at::Tensor>}; bool = true; _Elements = {at::Tensor, at::Tensor, at::Tensor}]’ not a return-statement |
This seems compiler related (e.g. facebookarchive/caffe2#1898). I guess you should downgrade your |
OK. I will try and let you know. Hopefully it will work |
After downgrading the GCC to 5.4, it can be installed. import torch_scatter |
Mh, it may be best to restart with the new GCC in a fresh conda environment. I guess the error appears due to different GCC versions for PyTorch and its extensions. Sorry for all the trouble :) |
Thanks for pointing out it's the GCC version problem. Thanks again! |
Cool! Feel free to reopen in case any error occurs. |
📚 Installation
Environment
Checklist
nvcc
.Additional context
ERROR: Command "/usr/bin/python -u -c 'import setuptools, tokenize;file='"'"'/tmp/pip-install-acYWkr/torch-scatter/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-8FtQiV/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-acYWkr/torch-scatter/
Exception information:
Traceback (most recent call last):
File "/home/xingjian.zxj/.local/lib/python2.7/site-packages/pip/_internal/cli/base_command.py", line 178, in main
status = self.run(options, args)
File "/home/xingjian.zxj/.local/lib/python2.7/site-packages/pip/_internal/commands/install.py", line 414, in run
use_user_site=options.use_user_site,
File "/home/xingjian.zxj/.local/lib/python2.7/site-packages/pip/_internal/req/init.py", line 58, in install_given_reqs
**kwargs
File "/home/xingjian.zxj/.local/lib/python2.7/site-packages/pip/_internal/req/req_install.py", line 951, in install
spinner=spinner,
File "/home/xingjian.zxj/.local/lib/python2.7/site-packages/pip/_internal/utils/misc.py", line 776, in call_subprocess
% (command_desc, proc.returncode, cwd))
InstallationError: Command "/usr/bin/python -u -c 'import setuptools, tokenize;file='"'"'/tmp/pip-install-acYWkr/torch-scatter/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-8FtQiV/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-acYWkr/torch-scatter/
And I saw a Cuda cannot compile and exit code is 1. I have no ideas what should I do.
The text was updated successfully, but these errors were encountered: