Discussion:
[Matplotlib-users] Missing Module: six ?
ralph hosmer
2015-02-13 11:40:16 UTC
Permalink
Per your instructions, I downloaded [] and installed using the 'wizard'.  The file I'm trying to execute is currently in a PyCharm project, and the Error Trace I get is as follows:
C:\Python34\python.exe "C:/Users/Ralph/PycharmProjects/anuASTRO4x/src/Euler's Method.py"Traceback (most recent call last):
  File "C:/Users/Ralph/PycharmProjects/anuASTRO4x/src/Euler's Method.py", line 21, in <module>
    import pylab # This program requires the matplotlib python library for the plots.
  File "C:\Python34\lib\site-packages\pylab.py", line 1, in <module>
    from matplotlib.pylab import *
  File "C:\Python34\lib\site-packages\matplotlib\__init__.py", line 105, in <module>
    import six
ImportError: No module named 'six'
Euler's Method

'from matplotlib.pylab import *' calls '__init__-py' and tries [unsuccessfully] to 'import 'six'.
What do you suggest I do to correct the ImportError: No module named 'six' ?Thanks for the help, Ralph
Werner
2015-02-13 12:23:19 UTC
Permalink
Hi Ralph,
Post by ralph hosmer
Per your instructions, I downloaded [] and installed using the
'wizard'. The file I'm trying to execute is currently in a PyCharm
C:\Python34\python.exe
"C:/Users/Ralph/PycharmProjects/anuASTRO4x/src/Euler's Method.py"
File "C:/Users/Ralph/PycharmProjects/anuASTRO4x/src/Euler's
Method.py", line 21, in <module>
import pylab # This program requires the matplotlib python library
for the plots.
File "C:\Python34\lib\site-packages\pylab.py", line 1, in <module>
from matplotlib.pylab import *
File "C:\Python34\lib\site-packages\matplotlib\__init__.py", line
105, in <module>
import six
ImportError: No module named 'six'
Euler's Method
'from matplotlib.pylab import *' calls '__init__-py' and tries
[unsuccessfully] to 'import 'six'.
What do you suggest I do to correct the ImportError: No module named
'six' ?
Hhm, that is one of the requirements, see under the Windows section:
http://matplotlib.org/users/installing.html?highlight=requirements

You should be able to install them with 'pip' - e.g. 'pip install six'

numpy is a bit more of a hazzle, in the past Christoph Gohlke's site had
.exe's but there are now wheels, so you need to download the correct one
(win32 and py3.4) and then use pip to install it.

https://pip.pypa.io/en/latest/user_guide.html#installing-from-wheels
http://www.lfd.uci.edu/~gohlke/pythonlibs/

Werner

Continue reading on narkive:
Loading...