-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[Windows] Native pip Windows installation depends on MinGW libraries #293
Comments
Thank you for contacting us. To better identify and reproduce the issue here, could you please fill in the environment related info? |
yes, i will do. |
Personally I'm not a Windows user so see if other team members have more experience and suggestions. Meanwhile, this seems to be a common issue for Windows users. You can find discussions about similar issues on Stack Overflow like this thread. See if some solutions suggested there can address your problem. |
It seems that currently Windows installation depends on MinGW, i.e. with LibGCC/PThread/etc. Native Windows installation with pip doesn't work right now. Could you please try using anaconda instead? |
I use anoconda to fix this problem. it works now. |
I use anoconda to fix this problem. it works now. |
Reopening this issue since (real) native windows build is being worked on. |
Why do I use Anaconda, but I still report an error? How did you solve it? Edit New issue |
Using anaconda should have you install MinGW dependencies. Could you make sure you are starting Python within Anaconda (by checking whether the Python banner contains the string |
Native Windows wheels will be available in the next patch release (0.1.4) |
It seems to happen when I used anaconda without installing vsXXXX_runtime or vsXXXX_win-64. And when they were installed, no more [OSError] happened. |
I notice that the code in libinfo.py of the packages' code has mentioned 2 dll files but i only find libdgl.dll in the package file.Is the dgl.dll lost?And how could i get this file?
|
@Zayme249Shaw You only need one of these files. |
DGL 0.2 for Windows is released on Conda and Pip. Please feel free to reopen this issue if it doesn't work. |
I met the same error in Windows system and using conda to install the package. Is there any suggestion to fix it ? Thanks a lot |
Since current DGL no longer depends on MinGW, I would imagine that either Visual C++ 2015 runtime, the Universal C runtime, or CUDA (if you're installing a GPU version) is missing. Were you able to locate the |
I followed your method and found that there are two dll file not found. I think install the latest CUDA toolkit should fix the problem. Thanks a lot for you help. |
🐛 Bug
To Reproduce
Steps to reproduce the behavior:
1.import dgl
1.
1.
Expected behavior
Environment
conda
,pip
, source): pipAdditional context
Traceback (most recent call last):
File "C:\Users\胡润\AppData\Local\Programs\Python\Python36\lib\site-packages\IPython\core\interactiveshell.py", line 2963, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "", line 1, in
import dgl
File "C:\Program Files\JetBrains\PyCharm Community Edition 2017.3.3\helpers\pydev_pydev_bundle\pydev_import_hook.py", line 20, in do_import
module = self.system_import(name, *args, **kwargs)
File "C:\Users\胡润\AppData\Local\Programs\Python\Python36\lib\site-packages\dgl_init.py", line 4, in
from . import nn
File "C:\Program Files\JetBrains\PyCharm Community Edition 2017.3.3\helpers\pydev_pydev_bundle\pydev_import_hook.py", line 20, in do_import
module = self.system_import(name, *args, **kwargs)
File "C:\Users\胡润\AppData\Local\Programs\Python\Python36\lib\site-packages\dgl\nn_init.py", line 11, in
from .pytorch import *
File "C:\Program Files\JetBrains\PyCharm Community Edition 2017.3.3\helpers\pydev_pydev_bundle\pydev_import_hook.py", line 20, in do_import
module = self.system_import(name, *args, **kwargs)
File "C:\Users\胡润\AppData\Local\Programs\Python\Python36\lib\site-packages\dgl\nn\pytorch_init.py", line 1, in
from .gcn import GraphConvolutionLayer
File "C:\Program Files\JetBrains\PyCharm Community Edition 2017.3.3\helpers\pydev_pydev_bundle\pydev_import_hook.py", line 20, in do_import
module = self._system_import(name, *args, **kwargs)
File "C:\Users\胡润\AppData\Local\Programs\Python\Python36\lib\site-packages\dgl\nn\pytorch\gcn.py", line 11, in
from ...base import ALL, is_all
File "C:\Program Files\JetBrains\PyCharm Community Edition 2017.3.3\helpers\pydev_pydev_bundle\pydev_import_hook.py", line 20, in do_import
module = self._system_import(name, *args, **kwargs)
File "C:\Users\胡润\AppData\Local\Programs\Python\Python36\lib\site-packages\dgl\base.py", line 6, in
from ._ffi.base import DGLError
File "C:\Program Files\JetBrains\PyCharm Community Edition 2017.3.3\helpers\pydev_pydev_bundle\pydev_import_hook.py", line 20, in do_import
module = self._system_import(name, *args, **kwargs)
File "C:\Users\胡润\AppData\Local\Programs\Python\Python36\lib\site-packages\dgl_ffi\base.py", line 43, in
_LIB, _LIB_NAME = _load_lib()
File "C:\Users\胡润\AppData\Local\Programs\Python\Python36\lib\site-packages\dgl_ffi\base.py", line 35, in load_lib
lib = ctypes.CDLL(lib_path[0], ctypes.RTLD_GLOBAL)
File "C:\Users\胡润\AppData\Local\Programs\Python\Python36\lib\ctypes_init.py", line 348, in init
self._handle = _dlopen(self._name, mode)
OSError: [WinError 126] 找不到指定的模块。
The text was updated successfully, but these errors were encountered: