0

I created an executable using Pyinstaller, and my application uses chromedriver and selenium. I followed what was mentioned in Running pyinstaller another pc with Chromedriver, I used the following command.

pyinstaller --onefile -i "icon.ico" --add-binary "pathToChromedriver.exe";"." script.py

It works on my computer and for other computers that have chromedriver installed, but for those that do not, it gives me an error saying that the chromedriver version must be greater than some version. How can I fix this issue? Thank you in advance.

paul
  • 121
  • 1
  • 10
  • 3
    I don't recommend to do as that. Chromedriver is compatible with Chrome browser, so one chromedriver can't support vary version Chrome on client. A better way is to implement get client browser version, then get compatible chromedriver from https://sites.google.com/a/chromium.org/chromedriver/downloads, then download & install it on client. – yong Nov 06 '18 at 01:45
  • How would I get the client browser version? – paul Nov 06 '18 at 02:20
  • You can pass the chrome version in pyinstall cmd line if it's no easy to get it by script. – yong Nov 06 '18 at 03:35

0 Answers0