selenium.common.exceptions.WebDriverException: Message: 'geckodriver' executable needs to be in PATH.

Report this error and check the solution:

1. Use pip to install selenium. The latest version is installed by default. You need to download the latest version of geckodriver corresponding to the system on the official website: https://github.com/mozilla/geckodriver/releases

2. After decompression, put the EXE program in the Python installation directory. If it is placed in another directory, you need to configure the environment variables yourself and restart the IDE.

3. If it is not resolved, upgrade Firefox to the latest version

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325022882&siteId=291194637