startJVM(jpype.getDefaultJVMPath()) 报错
Traceback (most recent call last):
File "/Users/thomas990p/PycharmProjects/tuya/volcano-biz-scripts/WenKongFa/FinalCode/java2python/CallJavaAPI.py", line 12, in <module>
startJVM(jpype.getDefaultJVMPath())
File "/Users/thomas990p/PycharmProjects/tuya/volcano-biz-scripts/venv/lib/python3.9/site-packages/jpype/_core.py", line 247, in startJVM
_jpype.startup(jvmpath, jvmargs + extra_jvm_args,
FileNotFoundError: [Errno 2] JVM DLL not found: /Users/thomas990p/Library/Java/JavaVirtualMachines/azul-11.0.21/Contents/Home/lib/jli/libjli.dylib
原因
解决方法
安装arm版本python即可 我这里安装的miniconda
Miniconda — Anaconda documentation