1

I have a problem while importing matplotlib.pyplot , I have python2.7 windows 7 64bits

>>> import matplotlib.pyplot as plt
Traceback (most recent call last):
 File "<pyshell#16>", line 1, in <module>
 import matplotlib.pyplot as plt
 File "C:\Python27\lib\site-packages\matplotlib\__init__.py", line 129, in <module>
 from matplotlib.cbook import is_string_like
 File "C:\Python27\lib\site-packages\matplotlib\cbook.py", line 28, in <module>
 import numpy as np
 File "C:\Python27\lib\site-packages\numpy\__init__.py", line 180, in <module>
 from . import add_newdocs
 File "C:\Python27\lib\site-packages\numpy\add_newdocs.py", line 13, in <module>
 from numpy.lib import add_newdoc
 File "C:\Python27\lib\site-packages\numpy\lib\__init__.py", line 4, in <module>
 from type_check import *
 File "C:\Python27\lib\site-packages\numpy\lib\type_check.py", line 8, in <module>
 import numpy.core.numeric as _nx
 File "C:\Python27\lib\site-packages\numpy\core\__init__.py", line 20, in <module>
 import function_base
 File "C:\Python27\lib\site-packages\numpy\core\function_base.py", line 6, in <module>
 from .numeric import result_type, NaN, shares_memory, MAY_SHARE_BOUNDS, TooHardError
ImportError: cannot import name shares_memory

Please help

Rory Daulton
22.7k7 gold badges46 silver badges51 bronze badges
asked May 30, 2016 at 13:19
7
  • matplotlib is difficult to install, with all its dependencies, in Windows. How did you install it? Commented May 30, 2016 at 13:21
  • Check this: stackoverflow.com/a/34950238/5510499 Commented May 30, 2016 at 13:52
  • looks like your numpy installation is broken, try reinstalling. Commented May 30, 2016 at 17:40
  • I follow same procedure for both pkg , I download extension packages and install it with pip install Commented May 31, 2016 at 0:57
  • pip install "matplotlib-1.5.1-cp27-none-win_amd64.whl" Commented May 31, 2016 at 0:57

1 Answer 1

1

I soled the issue by uninstalling python27, reinstall it again and install extension pip install matplotlib-1.5.0-cp27-none-win_amd64.whl

this will install automaticaly numpy extension

answered May 31, 2016 at 1:40
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.