Closed GongWeiBinGitHub closed 1 year ago
It sounds like you've adding numpy as Python sources, but haven't included any of the binary components that are necessary for numpy to work.
You haven't provided enough details to reproduce your problem; but your reference to PyImport_ImportModule
suggests you might have built your own Xcode project and have dropped this support package into your project. Adding binary modules such as numpy
requires additional handling. If you want to see an example of this, Briefcase is able to deploy numpy as a binary module; if you build a simple Briefcase iOS project that uses numpy, you may be able to compare with your own project to work out where you've gone wrong.
Thanks,
Describe the bug
Excuse me,When I introduced numpy, a problem was "Original error was: No module named 'numpy.core._multiarray_umath"
Steps to reproduce
PyImport_ImportModule() later, PyErr_Print();
Expected behavior
Importing the numpy C-extensions failed. This error can happen for many reasons, often due to issues with your setup or how NumPy was installed.
We have compiled some common reasons and troubleshooting tips at:
Please note and check the following:
and make sure that they are the versions you expect. Please carefully study the documentation linked above for further help.
Original error was: No module named 'numpy.core._multiarray_umath'
Screenshots
No response
Environment
iOS 16.2 Mac m2
Logs
Additional context
No response