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.

error when using numpy

See original GitHub issue

Reproducing code example:

import numpy as np

Error message:

IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!

Importing the numpy c-extensions failed.

  • Try uninstalling and reinstalling numpy.

  • If you have already done that, then:

    1. Check that you expected to use Python3.7 from “C:\Eigene_Programme\Anaconda\envs\torchtest\python.exe”, and that you have no directories in your PATH or PYTHONPATH that can interfere with the Python and numpy version “1.18.1” you’re trying to use.
    2. If (1) looks fine, you can open a new issue at https://github.com/numpy/numpy/issues. Please include details on:
      • how you installed Python
      • how you installed numpy
      • your operating system
      • whether or not you have multiple versions of Python installed
      • if you built from source, your compiler versions and ideally a build log
  • If you’re working with a numpy git repository, try git clean -xdf (removes all files not under version control) and rebuild numpy.

Note: this error has many possible causes, so please don’t comment on an existing issue about this - open a new one instead.

Original error was: DLL load failed: Das angegebene Modul wurde nicht gefunden.

Numpy/Python version information:

numpy 1.18

Using conda: conda create -n myenv python=3.7 conda install -c anaconda numpy

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
kingsyardcommented, May 24, 2021

to keep it simple

pip install numpy
if then also you get the error try with some particular versions that your work may need.

like pip install numpy==0.9 like this check clearly which version of numpy you need.

if you couldnt install it then try

pip install --user numpy second one is where you are providing permission.(granting user permission).

if you have got any other quarie you can contact us at www.smartaitechnologies.com for more

0reactions
rossbarcommented, Jul 18, 2020

Possibly related: #16799

I’m going to close this one since multiple discussions got wrapped up into one issue. If the problem persists, please open a new issue with information about the specific system and installation procedure.

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 >
Troubleshooting ImportError — NumPy v1.25.dev0 Manual
In certain cases a failed installation or setup issue can cause you to see the following error message: IMPORTANT: PLEASE READ THIS FOR...
Read more >
Error while converting a list into a numpy array - Edureka
I have a list len(list) = 9260 list[0].shape = (224,224,3). Now when I try to convert it to a numpy array, x =...
Read more >
How to Fix: No module named numpy - Statology
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 >
problem with python numpy - MATLAB Answers
likely you are trying to import a failed build of numpy. ... files not under version control). Otherwise reinstall numpy. Original error was:...
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