I am a Macintosh Yosemite user. When I try to import matplotlib, I get the following error.
import matplotlib Traceback (most recent call last): File "<pyshell#11>", line 1, in <module> import matplotlib File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/matplotlib/__init__.py", line 180, in <module> from matplotlib.cbook import is_string_like File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/matplotlib/cbook.py", line 33, in <module> import numpy as np File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/numpy/__init__.py", line 170, in <module> from . import add_newdocs File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/numpy/add_newdocs.py", line 13, in <module> from numpy.lib import add_newdoc File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/numpy/lib/__init__.py", line 8, in <module> from .type_check import * File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/numpy/lib/type_check.py", line 11, in <module> import numpy.core.numeric as _nx File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/numpy/core/__init__.py", line 6, in <module> from . import multiarray ImportError: cannot import name 'multiarray'
When I use from pylab import axis , this will work fine. I do not know what is happening, and I just got lost. I tried using homebrew, macports installation, dmg installation. I also have very little experience installing things through the terminal, so I just kept track of what other people were saying. Although, this still does not work.
source share