I am following the official installation instructions for DGL with CUDA set to NONE as my laptop does not have CUDA. The resulting command is:
pip install dgl -f https://data.dgl.ai/wheels/repo.html
pip install dglgo -f https://data.dgl.ai/wheels-test/repo.html
However, this command installs dgl with cuda (Successfully installed dgl-2.0.0+cu121)
When I try to import DGL in python, I get the following error:
C:\Users\sarwj>python
Python 3.10.11 (tags/v3.10.11:7d4cc5a, Apr 5 2023, 00:38:17) [MSC v.1929 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import dgl
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\sarwj\AppData\Local\Programs\Python\Python310\lib\site-packages\dgl\__init__.py", line 14, in <module>
from .backend import backend_name, load_backend # usort: skip
File "C:\Users\sarwj\AppData\Local\Programs\Python\Python310\lib\site-packages\dgl\backend\__init__.py", line 122, in <module>
load_backend(get_preferred_backend())
File "C:\Users\sarwj\AppData\Local\Programs\Python\Python310\lib\site-packages\dgl\backend\__init__.py", line 51, in load_backend
from .._ffi.base import load_tensor_adapter # imports DGL C library
File "C:\Users\sarwj\AppData\Local\Programs\Python\Python310\lib\site-packages\dgl\_ffi\base.py", line 50, in <module>
_LIB, _LIB_NAME, _DIR_NAME = _load_lib()
File "C:\Users\sarwj\AppData\Local\Programs\Python\Python310\lib\site-packages\dgl\_ffi\base.py", line 39, in _load_lib
lib = ctypes.CDLL(lib_path[0])
File "C:\Users\sarwj\AppData\Local\Programs\Python\Python310\lib\ctypes\__init__.py", line 374, in __init__
self._handle = _dlopen(self._name, mode)
FileNotFoundError: Could not find module 'C:\Users\sarwj\AppData\Local\Programs\Python\Python310\lib\site-packages\dgl\dgl.dll' (or one of its dependencies). Try using the full path with constructor syntax.
馃悰 Bug
I am following the official installation instructions for DGL with CUDA set to NONE as my laptop does not have CUDA. The resulting command is:
pip install dgl -f https://data.dgl.ai/wheels/repo.html
pip install dglgo -f https://data.dgl.ai/wheels-test/repo.html
However, this command installs dgl with cuda (
Successfully installed dgl-2.0.0+cu121)When I try to import DGL in python, I get the following error:
FileNotFoundError: Could not find module 'C:\Users\sarwj\AppData\Local\Programs\Python\Python310\lib\site-packages\dgl\dgl.dll' (or one of its dependencies). Try using the full path with constructor syntax.To Reproduce
OS: Windows 11
Python: 3.10
Hardware: Intel CPU without nVidia Card and thus no CUDA availability
Steps to reproduce the behavior:
Expected behavior
Environment
conda,pip, source): pipAdditional context