Selenium can be installed via pip after installing python. The command is 'python -m pip install selenium'. You need to take care of the driver for web browser of your choice before using selenium.