2

我正在尝试awkward在我的 Windows 10 系统中使用。我正在使用 python 3.8.2。安装软件包后,当我导入它时,我收到此 DLL 导入错误。

>>> import awkward as ak
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Users\MSS\Work\PyWorkspace37\awkward_poc\venv\lib\site-packages\awkward\__init__.py", line 23, in <module>
    import awkward.layout
  File "C:\Users\MSS\Work\PyWorkspace37\awkward_poc\venv\lib\site-packages\awkward\layout.py", line 5, in <module>
    from awkward._ext import Index8
ImportError: DLL load failed while importing _ext: The specified module could not be found.

如何知道缺少哪个 DLL 以及如何减轻它?

4

1 回答 1

0

The DLL is Awkward Array's C++ part, "awkward/_ext.pyc", which the installation should have put into place. I see two possibilities: (1) the installation went horribly wrong and should be restarted from a clean slate, or (2) the file is there but can't be loaded. If the directory it was installed to doesn't have executable permissions, that could be it. (Python code can be executed from a disk/directory without executable permissions, but native machine code can't be, which can cause some surprises.)

When it comes to installation issues, I can only make guesses because your system is different than mine. We try to use standard installation procedures, so if you use the standard Python inhalation tools (pip, conda) then it ought to work without problems, but evidently that didn't happen here.

于 2021-03-26T12:46:12.700 回答