Numpy.NET icon indicating copy to clipboard operation
Numpy.NET copied to clipboard

Unable to use Numpy.NET from linux environment

Open HiranCser opened this issue 1 year ago • 1 comments

Hi,

We are trying to use Numpy.NET in the Linux environment. Please find the error attached.

We also checked section "Versions and Compatibility" from https://github.com/SciSharp/Numpy.NET/blob/main/README.md and found that we need some extra steps/libs to run in Linux environment.

could you please provide the details on how to use/make/install this library in Linux? Linux_error.txt

Sample code:

float[] array = new float[2] { 0.1f, 0.2f };
NDarray array1 = np.asarray(array);

HiranCser avatar Jun 23 '23 06:06 HiranCser

Numpy.NET by default is for Windows, but you can use Numpy.Bare with an existing installation on linux.

Also please look at Python.Included (which Numpy.NET is based on), there are examples on how to use Python.Deployment to install non-windows versions of python and wheels (numpy) or use locally installed python.

Also look at this issue in Python.Included: https://github.com/henon/Python.Included/issues/52

henon avatar Jun 23 '23 07:06 henon