delorian1986
Posts: 4
Joined: Mon Jul 20, 2015 12:02 pm

matplotlib styles in python 2.7? or pandas in 3.2

Sun Aug 23, 2015 8:59 am

I am following a tutorial series on matplotlib together with guis on youtube (user 'sentdex').
He is using python 3.4 together with pandas. But i cant get pandas to work with python 3 on the pi2 with raspian.
but pandas working in python 2.7 so i have converted the code to 2.7.
but he is also using

Code: Select all

from matplotlib import style
And that gives me the error it cant find it.
And it works on python 3 but not on 2
I have been searching for clues and tried to see how to install either but can not find any way to do so.
is there a way to get these packages, (pandas on 3.2 or matplotlib style on 2.7) to work on the pi2?

i am having the same problem on my normal debian box.

robbes
Posts: 145
Joined: Sun Jan 20, 2013 7:11 pm
Location: Canada - off the west coast

Re: matplotlib styles in python 2.7? or pandas in 3.2

Sun Aug 23, 2015 3:44 pm

The styles package was introduced in matplotlib1.4 I think.
I expect you will find the version of matplotlib you are running under python2.7 is an earlier one.
Check the value of matplotlib.__version__ and try an upgrade.

Return to “Python”