from matplotlib import pyplot as pyp
and then run the file with the following error message
....
....
ImportError:
Importing the multiarray numpy extension module failed. Most
likely you are trying to import a failed build of numpy.
If you're working with a numpy git repo, try `git clean -xdf` (removes all
files not under version control). Otherwise reinstall numpy.
the reason is that Aonconda’s numpy module has a problem
enters Aconconda’s Prompt on the command line to execute
(base) C:\Users\hfh>pip uninstall numpy
Uninstalling numpy-1.15.4:
Would remove:
e:\soft\anaconda\lib\site-packages\numpy-1.15.4.dist-info\*
e:\soft\anaconda\lib\site-packages\numpy\*
e:\soft\anaconda\scripts\f2py.py
Proceed (y/n)?y
Successfully uninstalled numpy-1.15.4
execute
again
(base) C:\Users\hfh>pip install numpy
Collecting numpy
Using cached https://files.pythonhosted.org/packages/00/0e/5a8c34adb97fc1cd6636d78050e575945e874c8516d501421d5a0f377a6c/numpy-1.15.4-cp37-none-win_amd64.whl
Installing collected packages: numpy
Successfully installed numpy-1.15.4
div>
Read More:
- ImportError: Importing the multiarray numpy extension module failed.
- UserWarning: Failed to initialize NumPy: No module named ‘numpy.core._multiarray_umath‘
- Python_ Part 2 programming problems (3)_ solve numpy.core.multiarray Failed to import problem
- ImportError: numpy.core.multiarray failed to import
- Unable to call numpy in pychar, module notfounderror: no module named ‘numpy’
- When VS code imported Cv2, an error ImportError: numpy.core.multiarray failed to import; There are no mistakes in using the Spyder
- vscode import numpy error:DLL load failed: The specific module could not be found
- Jumper notebook, import numpy, prompt “importerror: DLL load failed: unable to find the specified module”
- ModuleNotFoundError: No module named ‘numpy.testing.nosetester‘
- After tensorflow installation, an error occurred while importing: importerror: DLL load failed: the specified module could not be found
- Warning when using numpy: runtimewarning: numpy.dtype size changed, may indicate binary incompatibility
- No module named numpy error in Python code
- RuntimeError: module compiled against API version 0xe but this version of numpy is 0xd
- Solutions to the failure of importing Python 3.7 SSL module
- AttributeError: module ‘numpy‘ has no attribute ‘getbuffer‘
- [solved] runtimeerror: module compiled against API version 0xc but this version of numpy is 0xb
- Install Oracle VM VirtualBox Extension Pack failed to install the extension pack
- cannot import name ‘multiarray’
- cannot import name ‘_validate_lengths’ from ‘numpy.lib.arraypad’
- Solve the problem of red wavy line in pychar when importing module written by oneself