OSError: [Errno 0] JVM DLL not found: /Library/Java/JavaVirtualMachines/zulu-
使用的java版本如下:
$ java -version
openjdk version “11.0.10” 2021-01-19 LTS
OpenJDK Runtime Environment Zulu11.45+27-CA (build 11.0.10+9-LTS)
OpenJDK 64-Bit Server VM Zulu11.45+27-CA (build 11.0.10+9-LTS, mixed mode)
请问是否有解决方案?
全部错误如下:
Traceback (most recent call last):
File “/Users/luyifei/PycharmProjects/natural-language-processing/run.py”, line 15, in
app = create_app()
File “/Users/luyifei/PycharmProjects/natural-language-processing/app/init.py”, line 38, in create_app
register_blueprints(app)
File “/Users/luyifei/PycharmProjects/natural-language-processing/app/init.py”, line 19, in register_blueprints
from app.api.v1 import create_blueprint_v1
File “/Users/luyifei/PycharmProjects/natural-language-processing/app/api/v1/init.py”, line 15, in
from app.api.v1 import semantic_parsing
File “/Users/luyifei/PycharmProjects/natural-language-processing/app/api/v1/semantic_parsing/init.py”, line 11, in
from . import analysis # noqa
File “/Users/luyifei/PycharmProjects/natural-language-processing/app/api/v1/semantic_parsing/analysis.py”, line 14, in
from app.libs.nlp_semantic_analyze.func_nlp_extraction import nlp_analyze
File “/Users/luyifei/PycharmProjects/natural-language-processing/app/libs/nlp_semantic_analyze/func_nlp_extraction.py”, line 1, in
from .func_tools import *
File “/Users/luyifei/PycharmProjects/natural-language-processing/app/libs/nlp_semantic_analyze/func_tools.py”, line 3, in
from pyhanlp import *
File “/Users/luyifei/.local/share/virtualenvs/natural-language-processing-M90GmBdj/lib/python3.7/site-packages/pyhanlp/init.py”, line 146, in
_start_jvm_for_hanlp()
File “/Users/luyifei/.local/share/virtualenvs/natural-language-processing-M90GmBdj/lib/python3.7/site-packages/pyhanlp/init.py”, line 133, in _start_jvm_for_hanlp
HANLP_JVM_XMX, convertStrings=True)
File “/Users/luyifei/.local/share/virtualenvs/natural-language-processing-M90GmBdj/lib/python3.7/site-packages/jpype/_core.py”, line 219, in startJVM
_jpype.startup(jvmpath, tuple(args), ignoreUnrecognized, convertStrings)
OSError: [Errno 0] JVM DLL not found: /Library/Java/JavaVirtualMachines/zulu-11.jdk/Contents/Home/lib/jli/libjli.dylib
at loadLibrary(native/common/include/jp_platform_linux.h:45)
at loadJVM(native/common/jp_env.cpp:179)
at startup(native/python/pyjp_module.cpp:159)进程已结束,退出代码1