Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to use Numpy.NET from linux environment #125

Open
HiranCser opened this issue Jun 23, 2023 · 1 comment
Open

Unable to use Numpy.NET from linux environment #125

HiranCser opened this issue Jun 23, 2023 · 1 comment

Comments

@HiranCser
Copy link

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);
@henon
Copy link
Contributor

henon commented Jun 23, 2023

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: henon/Python.Included#52

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants