I suggest starting fromĪ fresh environment (and never working in the 'base' environment). Method and there are stale files left around. I suspect that you at some point install mpl using more than one Works as expected (where |bm_scratch.py| is your example).
(bm_test) ✔ /tmp 13:46 $ python bm_scratch.py |
home/tcaswell/mc/bin from PATH prepending /tmp/bm_test/bin to PATH tmp/bm_test # To deactivate this environment, use: # $ sourceĭeactivate # ✔ /tmp 13:46 $ source activate /tmp/bm_test discarding ]|# To activate this environment, use: # $ source activate Package plan for installation in environment | ✔ /tmp 13:45 $ conda create -p bm_test python matplotlib basemap
#How to install matplotlib in spyder mac os x#
Keep in mind, I'm running on a MacBook Pro running Mac OS X v. are you running on a Mac platform or on a linux platform? Please Then I used conda to install matplotlib and observed that the matplotlibĪnd mpl_toolkits folders where installed.
The matplotlib and mpl_toolkits folders from the site-packages folder. I uninstalled matplotlib and basemap using conda and manually deleted Please ping to have this re-opened if you can reproduce this with a clean environment To try and revive your current env I suggest telling conda to uninstall mpl and basemap, then going into the site-packages folder, then remove matplotlib and mpl_toolkits folders if they still exist, then re-install. I suggest starting from a fresh environment (and never working in the 'base' environment). I suspect that you at some point install mpl using more than one method and there are stale files left around. Works as expected (where bm_scratch.py is your example). |#ĭiscarding /home/tcaswell/mc/bin from PATH The following NEW packages will be INSTALLED: The following packages will be downloaded: Package plan for installation in environment /tmp/bm_test: Theta = np.linspace(-4 * np.pi, 4 * np.pi, 100)Īx.plot(x, y, z, label='parametric curve')ġ3:45 $ conda create -p bm_test python matplotlib basemap ipython Traceback (most recent call last): File "/Users/user/coursera - programming for everybody (python)/Week - 06/3d-line.py", line 2, in from mpl_3d import Axes3D ImportError: No module named mpl_3dįrom mpl_3d import Axes3D I get the following error message when I run it: The sample program is attached to this posting. I also installed Basemap which as I understand it also installs mpl_toolkits at the same time. I have the latest version of Anaconda and Matplotlib installed. I'm running Anaconda on a MackBook Pro running Mac OS X 10.10.3. I'm attempting to run a Matplotlib example that requires the use of mpl_toolkit mplot3d.