I'm trying to install Pandas (python package) on Ubuntu. I can't find it in the repos. Is there a package repo for this or do I have to install from source?
I'm trying to install Pandas (python package) on Ubuntu. I can't find it in the repos. Is there a package repo for this or do I have to install from source?
I'm taking python class, professor suggests us to install in this way, pip is much better than setuptools and easy_install
The solution with easy_install didn't install properly on a Ubuntu 12.04 system, while
did a proper install.
It's in the Python package index - use
easy_install
orpip
.Replace
aptitude
withapt-get
if your version doesn't have aptitude installed, or usesynaptic
or whatever package manager your version has installed by default.This will install the latest version of pandas for Python 3 whereas apt-get does not.
An alternative method to install pandas, which can be done without sudo, is to use Anaconda:
Run the file and follow the installation instructions:
This will install python and pandas (and lots of other modules) in an anaconda directory in home (by default).
You can update to the latest version of pandas (along with other modules) using conda:
You can also create virtual environments and other useful things...
The problem this solves, over pip, is that there are issues in software dependencies of some modules (scipy especially is tricky) or versions compiled against an incorrect version of numpy.
It's useful to be on the latest version for bug-fixes and performance enhancements! A lot has changed since version 0.7 (which is the version packaged in 12.04).
To install through > bash Anaconda.. you need to have bzip2 installed
then follow Hayd's suggested procedure
Also make sure to install it on your home dir (without root) and to source .bashrc so you do not have to open a new session as requested
then proceed with
Hope that helps!