'ImportError: No module named 'selenium' error in my script

This is the first time I have tried to use selenium. When I try to run my script on windows, I get this error:

Traceback (most recent call last):
  File "/Users/Rand/Desktop/test.py", line 15, in <module>
    from selenium import webdriver
ImportError: No module named 'selenium'


Solution 1:[1]

You must install Selenium. Open the command prompt and run the following command to install selenium:

pip install selenium

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 WillyWhite