hexists / konlpy

Python package for Korean natural language processing.
http://konlpy.org
Other
3 stars 1 forks source link

jvm error in conda python3 #5

Open hexists opened 3 years ago

hexists commented 3 years ago

jvm error in conda python3

python Python 3.8.8 (default, Apr 13 2021, 12:59:45) [Clang 10.0.0 ] :: Anaconda, Inc. on darwin Type "help", "copyright", "credits" or "license" for more information.

from konlpy.tag import Kkma kkma = Kkma() Traceback (most recent call last): File "", line 1, in File "/Users/daniellee/opt/anaconda3/lib/python3.8/site-packages/konlpy/tag/_kkma.py", line 95, in init jvm.init_jvm(jvmpath, max_heap_size) File "/Users/daniellee/opt/anaconda3/lib/python3.8/site-packages/konlpy/jvm.py", line 64, in init_jvm jpype.startJVM(jvmpath, '-Djava.class.path=%s' % classpath, File "/Users/daniellee/opt/anaconda3/lib/python3.8/site-packages/jpype/_core.py", line 226, in startJVM _jpype.startup(jvmpath, tuple(args), OSError: [Errno 0] JVM DLL not found: /Library/Java/JavaVirtualMachines/jdk-17.jdk/Contents/Home/lib/libjli.dylib