No module named 'mpl_toolkits' Error in Spyder-4.0.1

817 views
Skip to first unread message

Stephen P. Molnar

unread,
Jan 10, 2020, 5:28:26 PM1/10/20
to spyder
I have installed Spyder-4.0.1 in ~/Anaconda3/envs/Spyder4 on my Debian-10.0.1 Platform.

When I run a Python Script, that ran without any problems in Spyder3, I encounter the "No module named 'mpl_toolkits' "  message which is module not found error.  Code Analysis finds:

E0401: 10,0: : Unable to import 'mpl_toolkits.axes_grid1'

E0401: 11,0: : Unable to import 'mpl_toolkits.axisartist'

E0401: 12,0: : Unable to import 'matplotlib.pyplot'


My attempts to find the missing module have resulted in failure.


What am I doing, or failing to do, to resolve the problem?


Thanks in advance

Carlos Córdoba

unread,
Jan 10, 2020, 5:38:22 PM1/10/20
to spyd...@googlegroups.com
Hi,

Please read our guide to solve this problem:

https://github.com/spyder-ide/spyder/wiki/Working-with-packages-and-environments-in-Spyder


Cheers,
Carlos

El 9/01/20 a las 7:53 a. m., Stephen P. Molnar escribió:
--
You received this message because you are subscribed to the Google Groups "spyder" group.
To unsubscribe from this group and stop receiving emails from it, send an email to spyderlib+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/spyderlib/dc08c3f3-e7c5-4007-9e51-ffd66755eb92%40googlegroups.com.

Stephen P. Molnar

unread,
Jan 13, 2020, 7:25:27 PM1/13/20
to spyd...@googlegroups.com
OK, I tried the steps in the reference you sent me.

Here are the results:

Python 3.7.6 (default, Jan  8 2020, 19:59:22)
Type "copyright", "credits" or "license" for more information.

IPython 7.11.1 -- An enhanced Interactive Python.

import sys; sys.executable
Out[1]: '/home/comp/anaconda3/envs/Spyder4/bin/python'

runfile('/home/comp/Apps/Python/3Plot/MultiplePlots_3.py', wdir='/home/comp/Apps/Python/3Plot')
Traceback (most recent call last):

  File "/home/comp/Apps/Python/3Plot/MultiplePlots_3.py", line 10, in <module>
    from mpl_toolkits.axes_grid1 import host_subplot

ModuleNotFoundError: No module named 'mpl_toolkits'

What should I try nee?
To view this discussion on the web visit https://groups.google.com/d/msgid/spyderlib/f9773b80-c19f-bcbd-b02a-3d4459454905%40gmail.com.

-- 
Stephen P. Molnar, Ph.D.
www.molecular-modeling.net
614.312.7528 (c)
Skype:  smolnar1

Stephen P. Molnar

unread,
Jan 14, 2020, 10:22:10 AM1/14/20
to spyd...@googlegroups.com
I have solved the problem myself this time

I reinstalled Anaconda3. Spyder-4.0.1was available. 

You received this message because you are subscribed to a topic in the Google Groups "spyder" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/spyderlib/gpNxhylQ4OM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to spyderlib+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/spyderlib/5E1B4A71.40805%40sbcglobal.net.

toks...@gmail.com

unread,
Jan 15, 2020, 3:23:40 PM1/15/20
to spyd...@googlegroups.com

I went back to spyder 4 because of this no module thingy problem.

Reply all
Reply to author
Forward
0 new messages