how to install pandas in virtualenv code example Example 1: install pandas sudo pip3 install pandas Example 2: how to import pandas import pandas as pd