Ask Your Question

pandas in sage notebook in virtual box?

asked 2013-02-05 14:43:50 +0200

numbersmom gravatar image

I am running the sage notebook as an appliance in virtual box. I can import Numpy and matplotlib, but I can't import pandas. The error I get is that there is no such module. Is anybody else having this problem? How do I fix it?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2013-04-27 17:33:38 +0200

GeorgeSalt gravatar image

It is possible to install pandas; however, it is not so simple as using easy_install.

The latest version of pandas (0.11) requires numpy 1.6.1 and sage is still using 1.5.1

There are also some optional dependencies (numepxr, PyTables, HDF5) that you probably want to have.

I don't know why sage lags behind in core packages such as numpy

edit flag offensive delete link more



As you can see in [trac ticket 11334](, numpy will be upgraded to 1.7.0 in Sage 5.10 (and as explained, it was not possible to upgrade to 1.6.x inbetween). If you need this version of numpy now, you can wait a few days that sage-5.9 is out an install 5.10beta0 from sources. Also, feel free to contribute ;)

tmonteil gravatar imagetmonteil ( 2013-04-27 17:51:58 +0200 )edit

answered 2013-02-05 15:00:55 +0200

kcrisman gravatar image

updated 2013-02-05 21:46:27 +0200

You would have to install pandas first, I imagine; it's not included in the usual Sage distribution. Some discussion on this is in this sage-support thread. You should be able to install it from the command line.

sage: !easy_install pandas

or something like that.

edit flag offensive delete link more


But first you have to download the pandas source code and the easy install. How do I do this for Sage 5.5 running in Virtual Box?

numbersmom gravatar imagenumbersmom ( 2013-02-05 15:57:41 +0200 )edit

I think @kcrisman meant sage: !easy_install pandas The program `easy_install` is already included in sage's python. And `pandas` will be downloaded and installed by `easy_install`. EDIT: Just tried installing it and it requires Numpy >= 1.6.1. Not really sure if it is safe to upgrade Numpy.

fidbc gravatar imagefidbc ( 2013-02-05 17:54:11 +0200 )edit

Hmm, good point. See for why we haven't done this yet.

kcrisman gravatar imagekcrisman ( 2013-02-05 21:46:18 +0200 )edit

@fidelbc - thanks, I edited my answer.

kcrisman gravatar imagekcrisman ( 2013-02-05 21:50:04 +0200 )edit

We really should make this possible. pandas is full of win (I now use it every day, and have been for most of the last year.) Or is that "pandas *are* full of win"?

DSM gravatar imageDSM ( 2013-02-05 22:56:53 +0200 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2013-02-05 14:43:50 +0200

Seen: 1,910 times

Last updated: Apr 27 '13