question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ModuleNotFoundError No module named numpy

See original GitHub issue

I tried to run BasicSamples project. I got the

Python.Runtime.PythonException: 'ModuleNotFoundError: No module named 'numpy' 

error message, at the line:


    public class XOR
    {
        public static void Run()
        {
            //Load train data
            NDarray x = np.array(new float[,] { { 0, 0 }, { 0, 1 }, { 1, 0 }, { 1, 1 } });
.........................

I am not sure whether this may relate to

follow the steps or example but crash (#6)

or not. The difference is that, this happen to another computer, in which there is only one Python environment.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:14 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
JagathPrasadcommented, Sep 13, 2020
1reaction
lszlp76commented, Sep 13, 2020

@JagathPrasad thanks a lot. It worked.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error "Import Error: No module named numpy" on Windows
It turns out the problem happens when you're installing Numpy to a version of python and trying to run the program using another...
Read more >
ModuleNotFoundError: No module named numpy, simple fix!
The most common reason for this error is that the numpy package is not installed in your environment or an outdated version is...
Read more >
How to Fix: No module named NumPy
The error “No module named numpy ” will occur when there is no NumPy library in your environment i.e. the NumPy module is...
Read more >
ModuleNotFoundError: No module named 'numpy' in Python
The Python "ModuleNotFoundError: No module named 'numpy'" occurs when we forget to install the numpy module before importing it or install ...
Read more >
How to Fix: No module named numpy
This error occurs when Python does not detect the NumPy library in your current environment. This tutorial shares the exact steps you can...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found