Numpy import error (multiarray)
See original GitHub issueI get the following error when I run main.exe
after I compile with python -m nuitka --standalone --mingw64 --follow-imports main.py
:
main
Traceback (most recent call last):
File "C:\Users\IEUser\Desktop\o\main.dist\numpy\core\__init__.py", line 40, in <module numpy.core>
File "C:\Users\IEUser\Desktop\o\main.dist\numpy\core\multiarray.py", line 12, in <module numpy.core.multiarray>
File "C:\Users\IEUser\Desktop\o\main.dist\numpy\core\overrides.py", line 6, in <module numpy.core.overrides>
ImportError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\IEUser\Desktop\o\main.dist\main.py", line 1, in <module>
File "C:\Users\IEUser\Desktop\o\main.dist\c\i.py", line 3, in <module c.i>
File "C:\Users\IEUser\Desktop\o\main.dist\e\e.py", line 6, in <module e.e>
File "C:\Users\IEUser\Desktop\o\main.dist\e\a.py", line 6, in <module e.a>
File "C:\Users\IEUser\Desktop\o\main.dist\numpy\__init__.py", line 142, in <module numpy>
File "C:\Users\IEUser\Desktop\o\main.dist\numpy\core\__init__.py", line 71, in <module numpy.core>
ImportError:
IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!
Importing the multiarray numpy extension module failed. Most
likely you are trying to import a failed build of numpy.
Here is how to proceed:
- If you're working with a numpy git repository, try `git clean -xdf`
(removes all files not under version control) and rebuild numpy.
- If you are simply trying to use the numpy version that you have installed:
your installation is broken - please reinstall numpy.
- If you have already reinstalled and that did not fix the problem, then:
1. Check that you are using the Python you expect (you're using C:\Program Files\Python37\python.exe),
and that you have no directories in your PATH or PYTHONPATH that can
interfere with the Python and numpy versions 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
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:
Nothing after Original error was:
.
I am using numpy functions in my code such as numpy.zeros
, numpy.ones
,… and so on).
My setup is:
Python: 3.7.2 (tags/v3.7.2:9a3ffc0492, Dec 23 2018, 23:09:28) [MSC v.1916 64 bit (AMD64)] (It is installed with Windows installer) [no more versions of python installed]
Nuitka 0.6.2 (it is installed with pip)
MinGW-64 8.1.0 (win32 threads and x86_64 architecture) (It is installed with Windows installer)
Numpy: 1.16.2 (it is installed with pip)
Windows 10 64bits (same problem with Windows 7 64bits) [fresh and clean original installation]
Arch: x86_64
I have tried to compile with python -m nuitka --standalone --mingw64 --follow-imports --include-plugin-directory="C:\Program Files\Python37\Lib\site-packages\numpy\core" main.py
but I always get the same error when I run main.exe
.
Issue Analytics
- State:
- Created 5 years ago
- Comments:12 (7 by maintainers)
Top Results From Across the Web
ImportError: numpy.core.multiarray failed to import
For me the issue was dual installation of numpy which was in a conflicting version with other libraries and it was shadowing the...
Read more >ImportError: numpy.core.multiarray failed to import [cv2 ...
This error occurs because of an improper/incompatible version of NUMPY. As we all know that most of the machine learning and deep learning...
Read more >[Solved] ImportError: numpy.core.multiarray Failed to Import
ImportError: numpy.core.multiarray failed to import error. Follow these steps to solve the error. Open CLI and run the following command:
Read more >ImportError numpy core multiarray failed to import - Edureka
I am trying to import the cv2 module in Jupyter Notebook. But It is showing me the below error. import cv2 ImportError: numpy.core.multiarray ......
Read more >from .cv2 import * ImportError: numpy.core.multiarray failed to ...
I get the same error when I run the code for camera.py. Below is the error I receive when I run the main.py...
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 FreeTop 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
Top GitHub Comments
sorry, my bad: please use
--enable-plugin=numpy
not--enable-plugin=numpy-plugin
.This version is from almost prehistoric times! Please install the most current version from the development branch, and then you should be successful.