java各种版本都试过了,相应的环境变量也正常配置,可就是有这个问题:
SystemError Traceback (most recent call last)
Cell In[2], line 1
----> 1 from pyhanlp import *
File D:\anaconda3\Lib\site-packages\pyhanlp_init_.py:148
144 eprint(‘下载成功,请重新启动程序。如果问题依然存在,请不要安装到中文路径。’)
145 exit(1)
→ 148 _start_jvm_for_hanlp()
150 if hasattr(java.lang.Thread, ‘isAttached’):
151 def _attach_jvm_to_thread():
File D:\anaconda3\Lib\site-packages\pyhanlp_init_.py:129, in _start_jvm_for_hanlp()
127 if HANLP_VERBOSE: print(“设置 JAVA_JAR_CLASSPATH [%s]” % JAVA_JAR_CLASSPATH)
128 # 启动JVM
→ 129 startJVM(
130 jvm_path,
131 JAVA_JAR_CLASSPATH,
132 “-Xms%s” %
133 HANLP_JVM_XMS,
134 “-Xmx%s” %
135 HANLP_JVM_XMX, convertStrings=True)
136 # 确保启动正常
137 try:
File ~\AppData\Roaming\Python\Python312\site-packages\jpype_core.py:357, in startJVM(jvmpath, classpath, ignoreUnrecognized, convertStrings, interrupt, *jvmargs)
355 prior = [locale.getlocale(i) for i in categories]
356 # Start the JVM
→ 357 _jpype.startup(jvmpath, tuple(jvm_args + extra_jvm_args),
358 ignoreUnrecognized, convertStrings, interrupt, tmp)
359 # Collect required resources for operation
360 initializeResources()
SystemError: java.lang.UnsatisfiedLinkError: C:\Users: Can’t find dependent libraries
求大佬帮忙