instal pandas code example Example 1: install pandas in python pip install pandas Example 2: pandas python3 only sudo apt-get install python3-pandas