我安装了pyjnius,导入后出现错误:

Traceback (most recent call last):
 File "main.py", line 18, in <module>
     from jnius import autoclass, cast
   File "C:\Users\Admin\AppData\Local\Programs\Python\Python37\lib\site-packages\jnius\__init__.py", line 41, in <module>
     from .jnius import *  # noqa
 ImportError: DLL load failed: The specified module was not found.


如何解决?

最佳答案

问题是我在驱动器D上安装了Java jdk。一旦我在驱动器C(按标准)上重新安装了jdk,错误就消失了

09-26 09:58