python 3.6
Jpype1 0.6.3
启动JVM时报错:
File "D:\Anaconda3\envs\cube-test\lib\site-packages\pyhanlp_init_.py", line 126, in
start_jvm_for_hanlp()
File "D:\Anaconda3\envs\cube-test\lib\site-packages\pyhanlp_init.py", line 123, in _start_jvm_for_hanlp
'UTF-8')
File "D:\Anaconda3\envs\cube-test\lib\site-packages\jpype_core.py", line 70, in startJVM
_jpype.startup(jvm, tuple(args), True)
TypeError: function takes exactly 5 arguments (3 given)
在jpype用户指导手册上有启动JVM的有关要求和说明,要安装java,并将JAVA_HOME环境变量指向JRE,然后可以启动JVM路径指向用户的jar文件。参考: https://jpype.readthedocs.io/en/latest/userguide.html