pip install selenium --userand ran the code, it gave me a message saying
Message: 'geckodriver' executable needs to be in PATH.
Basically there were two issues at hand
- I did not have gecko driver installed.
- Windows couldn’t find the path to my geckodriver file.
- Download geckodriver here. Choose Windows x32 or x64 accordingly.
- The cleanest way, without bloating your path environment variables, is to put geckodriver.exe, the file downloaded from step 1, into your Python folder. This is because there is usually a path environment variable set to your python directory, and it its path is usually like