|
From: Werner <wer...@gm...> - 2015-02-13 12:23:28
|
Hi Ralph, On 2/13/2015 12:40, ralph hosmer wrote: > 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' ? 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 |