本文主要是介绍macos m1 arm芯片 使用jpype报错 FileNotFoundError: [Errno 2] JVM DLL not found,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
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
这篇关于macos m1 arm芯片 使用jpype报错 FileNotFoundError: [Errno 2] JVM DLL not found的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!