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.

"ModuleNotFoundError: No module named 'torch_scatter.scatter_cpu'" on Windows 10

See original GitHub issue

Hi, Thanks for the awesome library. I used to use torch-scatter a lot on windows and linux. Here I tried to install and play with torch-scatter. But I got a fatal error

import torch_scatter

Traceback (most recent call last): File “<stdin>”, line 1, in <module> File “C:\Users\joon0\dev\pytorch_scatter\torch_scatter_init_.py”, line 3, in <module> from .mul import scatter_mul File “C:\Users\joon0\dev\pytorch_scatter\torch_scatter\mul.py”, line 3, in <module> from torch_scatter.utils.ext import get_func File “C:\Users\joon0\dev\pytorch_scatter\torch_scatter\utils\ext.py”, line 2, in <module> import torch_scatter.scatter_cpu ModuleNotFoundError: No module named ‘torch_scatter.scatter_cpu’

I install torch-scatter from source via the following commend

$ python setup.py install

On my machine, It has GPU and cuda. BUT I installed pytorch-cpu, NOT gpu version.

Here’s building log. log.txt

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
Junyoungparkcommented, Jul 22, 2019

Oh. I guess I found the issue. As you suggested, I delete preinstalled packages multiple times and I got out of PyTorch-scatter directory and reinstall torch-scatter again trough pip, I magically run. Thanks for the support!

0reactions
github-actions[bot]commented, Sep 15, 2021

This issue had no activity for 6 months. It will be closed in 2 weeks unless there is some new activity.

Read more comments on GitHub >

github_iconTop Results From Across the Web

No module named "Torch" - python - Stack Overflow
Try to install PyTorch using pip: First create a Conda environment using: conda create -n env_pytorch python=3.6.
Read more >
Installation — pytorch_geometric documentation
e.g., No module named 'torch_*. *_cuda' , or execution simply crashes with Segmentation fault (core dumped) . We collected a lot of common...
Read more >
ModuleNotFoundError: No module named 'torch-scatter'
Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'torch-scatter' How to remove the Modu.
Read more >
Modulenotfounderror: No module named 'torch' (Fix the error)
Modulenotfounderror : No module named 'torch' error occurs when pytorch python module is either not found or its path is not set.
Read more >
No module named 'torch_sparse.unique_cuda'_颹蕭蕭的博客
ModuleNotFoundError : No module named 'torch_scatter.cuda' ... Windows下使用anaconda安装配置CPU版的pytorch请参看这篇博客: ...
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