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.

Could not find module _convert_cpu.pyd

See original GitHub issue

😵 Describe the installation problem

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\CodeEnv\Python\lib\site-packages\torch_geometric\__init__.py", line 4, in <module>
    import torch_geometric.data
  File "C:\CodeEnv\Python\lib\site-packages\torch_geometric\data\__init__.py", line 1, in <module>
    from .data import Data
  File "C:\CodeEnv\Python\lib\site-packages\torch_geometric\data\data.py", line 20, in <module>
    from torch_sparse import SparseTensor
  File "C:\CodeEnv\Python\lib\site-packages\torch_sparse\__init__.py", line 19, in <module>
    torch.ops.load_library(spec.origin)
  File "C:\CodeEnv\Python\lib\site-packages\torch\_ops.py", line 255, in load_library
    ctypes.CDLL(path)
  File "C:\CodeEnv\Python\lib\ctypes\__init__.py", line 374, in __init__
    self._handle = _dlopen(self._name, mode)
FileNotFoundError: Could not find module 'C:\CodeEnv\Python\Lib\site-packages\torch_sparse\_convert_cpu.pyd' (or one of its dependencies). Try using the full path with constructor syntax.

Similar to issues#2850, issues#5394

Environment

  • PyG version: 2.1.0
  • PyTorch version: 1.12.0
  • OS: Win10
  • Python version: 3.9.12
  • CUDA/cuDNN version: None
  • How you installed PyTorch and PyG (conda, pip, source): pip
  • Any other relevant information (e.g., version of torch-scatter): torch-scatter==2.0.9, torch-sparse==0.6.15

Issue Analytics

  • State:closed
  • Created 10 months ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
dkqkxxcommented, Nov 21, 2022

The reason is that vs_BuildTools is missing, and the problem has been solved after installation.

0reactions
dkqkxxcommented, Dec 5, 2022

我是用的jupyter notebook 结果一直用不了torch geometric

------------------ 原始邮件 ------------------ 发件人: “pyg-team/pytorch_geometric” @.>; 发送时间: 2022年12月5日(星期一) 晚上7:44 @.>; @.@.>; 主题: Re: [pyg-team/pytorch_geometric] Could not find module _convert_cpu.pyd (Issue #6024)

The reason is that vs_BuildTools is missing, and the problem has been solved after installation. 你好,我也遇到这个问题了,可以麻烦您告诉我怎么解决吗?抱歉打扰您了。

如果你Windows平台用的是,vs_BuildTools需要安装,选择编译工具,cmake以及必要的Windows头文件,然后按照对应torch版本在https://data.pyg.org/whl/下载安装😀

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

如果在Linux上使用jupyter,直接下载即可,windows设备需要以上操作

Read more comments on GitHub >

github_iconTop Results From Across the Web

Untitled
Fix back-tracking Unicode properties in non-UTF-8 mode (Resolves: #866520) - Fix pcregrep -Mv looping bug (Resolves: #859959) - Do not loop while compiling ......
Read more >
kernel-firmware-2.6.32-220.7.1.el6.centos.plus RPM for noarch
Name: kernel-firmware, Distribution: Unknown. Version: 2.6.32, Vendor: CentOS. Release: 220.7.1.el6.centos.plus, Build date: Wed Mar 7 11:05:16 2012.
Read more >
Untitled
When did ebola come to nigeria, Small nice tattoos for girls! ... Ots watch price, Mnemonics images, 50 cent i don't know officer...
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