Python Pandas is a very popular package used by big data experts, mathematicians, etc. Python Pandas can be installed in different ways but also the Linux distributions like Ubuntu, Debian, CentOS, Fedora, Mint, RHEL, Kali, etc. provide the pandas package from the official repositories. apt or yum or dnf package managers can be used to install the pandas package.
Install Python Pandas In Ubuntu, Debian, Mint and Kali
deb or apt based distributions like Ubuntu, Debian, Mint and Kali can install the Python pandas from the command line easily. apt
or apt-get
command can be used to show information about pandas and install it for Python2 or Python3. Python pandas is provided with the package name python2-pandas
for Python2 and python3-pandas
for Python3.
$ apt show python2-pandas
and we can install the Python2 pandas package with the following command.
$ sudo apt install python2-pandas
We can also install pandas package for Python version 3 like below.
$ apt show python3-pandas
$ apt install python3-pandas
Install Python Pandas In Fedora, CentOS, RHEL
Python pandas can be installed into the RPM based distributions like Fedora, CentOS, RHEL. Pandas provided by official repositories and in order to install to RHEL and CentOS the EPEL repository should be enabled like below.
$ sudo yum install epel-release
Now we can install the Python2 Pandas library with the following yum or dnf commands.
$ sudo yum install python2-pandas
$ sudo dnf install python2-pandas
Pandas for Python3 can be installed like below.
$ sudo yum install python3-pandas
$ sudo dnf install python3-pandas
Install Python Pandas In OpenSuse
Suse or OpenSUSE also provides the pandas packages from its official repositories. The zypper package management command can be used to install pandas for both Python2 and Python3.
$ sudo zypper install python3-pandas