MoE88 0 Posted November 16, 2023 Hello, I'm working on a project where I utilize a 2D NumPy array. I've managed to successfully send data from Delphi to Python as a 2D NumPy array. However, I'm currently exploring ways to transfer this NumPy array back to Delphi as a 2D array of singles. Any idea? thanks Share this post Link to post
pyscripter 689 Posted November 16, 2023 See The buffer protocol has been implemented · pyscripter/python4delphi · Discussion #443 (github.com) and demo 35. Share this post Link to post
MoE88 0 Posted November 24, 2023 Thanks, I attempted to run demo 35, but encountered the error message 'ModuleNotFoundError: No module named 'numpy''. I have already installed this library on my PC and can utilize it seamlessly within the Python environment. However, the Delphi environment fails to recognize the installed NumPy library. any idea ? thanks Share this post Link to post
MoE88 0 Posted November 24, 2023 I solved the problem, by re-installing python Share this post Link to post