Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install pandas for Python 3?

I try to install pandas for Python 3 by executing the following command:

sudo pip3 install pandas 

As a result I get this:

Downloading/unpacking pandas   Cannot fetch index base URL https://pypi.python.org/simple/   Could not find any downloads that satisfy the requirement pandas Cleaning up... No distributions at all found for pandas 

Maybe it is interesting to note that installation for Python 2 works fine.

sudo pip install pandas 

Returns the following:

Requirement already satisfied (use --upgrade to upgrade): pandas in /usr/lib/python2.7/dist-packages Requirement already satisfied (use --upgrade to upgrade): python-dateutil in /usr/lib/python2.7/dist-packages (from pandas) Requirement already satisfied (use --upgrade to upgrade): pytz>=2011k in /usr/lib/python2.7/dist-packages (from pandas) Requirement already satisfied (use --upgrade to upgrade): numpy>=1.6.1 in /usr/lib/python2.7/dist-packages (from pandas) Cleaning up... 

ADDED

I have just installed pandas in the following way:

sudo apt-get install python3-pandas 
like image 212
Roman Avatar asked Aug 04 '16 13:08

Roman


People also ask

Is pandas available in Python 3?

The commands in this table will install pandas for Python 3 from your distribution. However, the packages in the linux package managers are often a few versions behind, so to get the newest version of pandas, it's recommended to install using the pip or conda methods described above.

Is pandas pre installed in Python?

If you are using the latest version of Pandas, you will have pip already installed on your system. Therefore you need not follow from step 1 to 5. For users who don't have the latest version of Python (3.7. 3), they should upgrade it.

What is pandas in python3?

pandas is a fast, powerful, flexible and easy to use open source data analysis and manipulation tool, built on top of the Python programming language.


2 Answers

Try this:

sudo apt-get install python3-pip sudo -H pip3 install pandas 
like image 74
Ananda Avatar answered Sep 20 '22 06:09

Ananda


This worked for me, finally:

pip3 install pandas --no-build-isolation 
like image 42
Shinto Joseph Avatar answered Sep 21 '22 06:09

Shinto Joseph