matplotlib4j
matplotlib4j copied to clipboard
MACOS Apple M1 Pro an exception occurred
com.github.sh0nk.matplotlib4j.PythonExecutionException: Python execution error: Traceback (most recent call last):
File "/Users/xxx/Library/Python/3.8/lib/python/site-packages/numpy/core/init.py", line 23, in
@fuwei199006 Thanks for the feedback. Could you also point out which method call on java raised the exception?
When Java calls Python and imports numpy library . This doesn't seem to be the problem with this component。
#coding=utf-8
import numpy as np
print(1+2)
print("==============")
x = np.array(range(0, 50))
print(x)
Call in Java to try this
@fuwei199006 Sorry for replying so late. I have finally tried to test on Mac with Apple Silicon. But if numpy is correctly installed with python 3.9, I haven't seen that error. With another Python version, I also struggled to install the library, so please check if numpy is correctly installed first. ref: https://stackoverflow.com/questions/71745890/incompatible-architecture-have-arm64-need-x86-64-error-while-installing