当我运行命令pip install javabridge时,出现以下错误:

Could not find Java JRE compatible with x86_64 architecture Traceback (most recent call last): File "<string>", line 1, in <module> File "/private/var/folders/qk/qv11w6l52rn983d99j5zzrr40000gn/T/pip-build-pen46dwr/javabridge/setup.py", line 396, in <module> ext_modules=ext_modules(), File "/private/var/folders/qk/qv11w6l52rn983d99j5zzrr40000gn/T/pip-build-pen46dwr/javabridge/setup.py", line 89, in ext_modules raise Exception("JVM not found") Exception: JVM not found

最佳答案

Javabridge需要Python 2.6 +,NumPy,Java Development Kit(JDK)和C编译器:有关安装说明,请参见https://github.com/LeeKamentsky/python-javabridge/blob/master/docs/installation.rst

10-01 17:46