question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

torch-scatter failing to install

See original GitHub issue

📚 Installation

Environment

  • OS: Ubuntu 18.04
  • Python version: 3.6
  • PyTorch version: 1.7.1
  • CUDA/cuDNN version: 10.1
  • GCC version: 7.5.0
  • How did you try to install PyTorch Geometric and its extensions (wheel, source): With pip3
  • Any other relevant information:

Checklist

  • [yes] I followed the installation guide.
  • [yes] I cannot find my error message in the FAQ.
  • [yes] I set up CUDA correctly and can compile CUDA code via nvcc.
  • [yes] I do have multiple CUDA versions on my machine.

Additional context

I installed torch 1.7.1 with

pip3 install torch==1.7.1+cu101 -f https://download.pytorch.org/whl/torch_stable.html

successfully

Then torch-scatter with

pip3 install --no-index torch-scatter -f https://pytorch-geometric.com/whl/torch-1.7.0+cu101.html

also successfully

but then, for torch-sparse,

pip3 install --no-index torch-sparse -f https://pytorch-geometric.com/whl/torch-1.7.0+cu101.html

I get this error message

Could not find a version that satisfies the requirement scipy (from torch-sparse) (from versions: ) No matching distribution found for scipy (from torch-sparse)

I tried to repeat the last pip3 after running a pip3 install of scipy, but it did not work. I also tried repeating the sequence with versions 1.4.0, 1.5.0, and 1.6.0 of torch, but it did not work either.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
David-Balcellscommented, Feb 24, 2021

It worked! After installing torch-sparse, the cluster and spline-conv worked smoothly. Then I had problems with the torch-geometric package that seemed to be related to some confusing issues with llvmlite, but I fixed this by upgrading pip3 to version 21.0.1. Then, the last problem seemed to be having different cuda versions (10.2 for torch vs. 10.1 for torch-sparse but I could fix this by reinstalling torch with version 1.7.0 and cuda 10.1). Seems to work well now when running the examples of your tutorials. Thanks for your support and for the amazing tool you have developed for ML with graphs.

0reactions
rusty1scommented, Feb 23, 2021

Can you try to run without the --no-index option?

pip3 install torch-sparse -f https://pytorch-geometric.com/whl/torch-1.7.0+cu101.html
Read more comments on GitHub >

github_iconTop Results From Across the Web

Error while installing PyTorch Scatter · Issue #2381 - GitHub
I am using the command "pip install torch-scatter -f ... ERROR: Failed building wheel for torch-scatter. Running setup.py clean for torch- ...
Read more >
Installation problem with PyTorch's Geometric. "torch-scatter ...
I'm having trouble installing torch-scatter from PyTorch Geometric to deal with some tabular data for question answering task based on TAPAS ...
Read more >
Installation — pytorch_geometric documentation
On macOS: 'gcc' failed with exit status 1 : Install the respective packages by using the following environment variables (see Issue#21):. $ ...
Read more >
Unable to install torch-scatter and other packages - Jetson Nano
Hi, I am attempting to create a dockerized Jupyter notebook container based on the DLI image with my own additions of using PyTorch...
Read more >
torch-scatter - Python Package Health Analysis - Snyk
pip install torch-scatter. When running in a docker container without NVIDIA driver, PyTorch needs to evaluate the compute capabilities and may fail.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found