python - Fixing Numpy failing to import multiarray -


ok, trying use matplotlib:

import matplotlib.pyplot plt  import matplotlib.rcsetup rc print(rc.all_backends)  plt.plot([1,2,3], [4,5,6])   plt.show() 

but error on first line, when try import matplotlib:

traceback (most recent call last):   file "c:\users\vineet\documents\summer 2017\python\mathplot\mathplot\intro.py", line 1, in <module>     import matplotlib.pyplot plt   file "c:\program files\python36\lib\site-packages\matplotlib\__init__.py", line 122, in <module>     matplotlib.cbook import is_string_like, mpldeprecation, dedent, get_label   file "c:\program files\python36\lib\site-packages\matplotlib\cbook.py", line 32, in <module>     import numpy np   file "c:\program files\python36\lib\site-packages\numpy\__init__.py", line 142, in <module>     . import add_newdocs   file "c:\program files\python36\lib\site-packages\numpy\add_newdocs.py", line 13, in <module>     numpy.lib import add_newdoc   file "c:\program files\python36\lib\site-packages\numpy\lib\__init__.py", line 8, in <module>     .type_check import *   file "c:\program files\python36\lib\site-packages\numpy\lib\type_check.py", line 11, in <module>     import numpy.core.numeric _nx   file "c:\program files\python36\lib\site-packages\numpy\core\__init__.py", line 26, in <module>     raise importerror(msg) importerror: importing multiarray numpy extension module failed.  trying import failed build of numpy. if you're working numpy git repo, try `git clean -xdf` (removes files not under version control).  otherwise reinstall numpy. 

essentially main problem in numpy library, when tries import multiarray module:

file "c:\program files\python36\lib\site-packages\numpy\core\__init__.py", line 26, in <module>         raise importerror(msg)     importerror:     importing multiarray numpy extension module failed.      trying import failed build of numpy.     if you're working numpy git repo, try `git clean -xdf` (removes     files not under version control).  otherwise reinstall numpy. 

i checked file , there no sign of multiarray. how fix this? tried reinstalling numpy (1.13.1), didn't work. looked through internet couldn't find solution work me.

os: window 10 python: 3.6 numpy: 1.13.1

i able solve updating python 3.6.2, apparently there bug python when came implementing libraries or something.


Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -