4

I am running Ubuntu 14.04 LTS. To install the Python pandas library, I ran

sudo apt-get install python-pandas

The output was as follows:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package python-pandas

Why can the package not be located?

2 Answers2

3

Enable universe repository by executing:

sudo add-apt-repository universe

sudo apt-get update

Or by using the Software & Updates application:

Imgur

Then execute:

sudo apt-get install python-pandas

You may use Ubuntu Software Center instead:

Imgur

Ravan
  • 9,587
1

Starting from Ubuntu 16.04, the python3 package version is available with the name python3-pandas.

You can use sudo apt-get install python3-pandas to install it.

Reference: python3-pandas in packages.ubuntu.com

Lorenz Keel
  • 9,551
Zivar
  • 11
  • There aren't many python- prefixed packages left in Ubuntu 20.04 including the old python-pandas package. Most python- prefixed packages have been updated from python to python3 in 20.04. – karel Nov 03 '20 at 07:47