pip install mp-api
pip install pymatgen
from mp_api import MPRester
from pymatgen.ext.matproj import MPRester