After installing Python, launch the terminal and type: pip install selenium. To install Python on your Mac, download the latest binary package from the official Python download page. This one line fixed pip on my Mac when all I got before was some kind of DistributionNotFound exception trying to install something via pip.