Hi, Thanks for this advice – I’ll have a go at installing a separate, up to date Python outside the Enthought and Spyder installations. Maybe also some editing of the Spyder python path will help – it currently includes the Enthought distribution above the Spyder distribution, which seems odd. All the best, Jeremy
From: [email protected] [mailto:[email protected]] On Behalf Of Uwe Fechner Sent: dinsdag 11 februari 2014 20:42 To: [email protected] Subject: Re: [spyder] problem with pandas Hello, today I had to fix a simular problem on the Mac of a student (I don't own a Mac). We followed this instruction: http://www.lowindata.com/2013/installing-scientific-python-on-mac-os-x/ And it worked out very well. After installing ipython etc. as described in this link it also worked in spyder, that was installed as dmg. In spyder we changed the default python interpreter to the default interpreter of the operating system, otherwise it would not see modules we installed with "sudo pip install xxx". We had to add one or two lines to .bash_profile. Homebrew tells you what you need to add or change here. I tried homebrew today the first time and I like it. Best regards: Uwe Fechner Am 11.02.2014 19:36, schrieb Jeremy Harbinson: Hi, I tried unchecking the automatically load numpy option. I checked that numpy was not available in the Spyder IPython console. Pandas still would not import, nor would it import once I had manually imported numpy - same error message as before. I agree that it looks like some kind of mis-match. I used sys.modules to track the paths, but no joy: in Spyder/Python numpy and pandas load from Spyder (eg /Applications/Spyder.app/Contents/Resources/lib/python2.7/pandas/__init__.pyc), in Spyder/IPython numpy also loads from Spyder, but I cannot tell from where it tries to load pandas - that might be helpful! all the best, Jeremy On Tuesday, February 11, 2014 5:51:58 PM UTC+1, Adrian Klaver wrote: On 02/11/2014 08:03 AM, Jeremy Harbinson wrote: > Hi, > Thanks for your response. > > Numpy was running in the Spyder IPython console (version 1.7.1) (though > it was useful to look at those pages of the Preferences notebook). You might want to uncheck automatically loading numpy in the Spyder IPython console and see what happens. Just a hunch, but I suspect there may be a numpy version clash at work. I > also started an IPython notebook in Safari (so no Spyder and no > Enthought Canopy), pandas loaded and I could run a function that used > pandas. The version number of pandas that ran in the notebook was > 0.12.0, which is the same as that which ran in the Spyder Python session. > all the best, > Jeremy > -- Adrian Klaver [email protected]<javascript:> -- 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 [email protected]<mailto:[email protected]>. To post to this group, send email to [email protected]<mailto:[email protected]>. Visit this group at http://groups.google.com/group/spyderlib. For more options, visit https://groups.google.com/groups/opt_out. -- 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/hYJZZj_dKjg/unsubscribe. To unsubscribe from this group and all its topics, send an email to [email protected]<mailto:[email protected]>. To post to this group, send email to [email protected]<mailto:[email protected]>. Visit this group at http://groups.google.com/group/spyderlib. For more options, visit https://groups.google.com/groups/opt_out. -- 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/spyderlib. For more options, visit https://groups.google.com/groups/opt_out.
