how to install pandas mac code example Example 1: install pandas pip install pandas Example 2: install pandas in python mac sudo pip install pandas