error when using numpy
See original GitHub issueReproducing 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:
- 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.
- 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:
- Created 4 years ago
- Comments:11 (5 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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
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.