Error Message Pip - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: Web Scraping & Web Development (https://python-forum.io/forum-13.html) +--- Thread: Error Message Pip (/thread-8233.html) |
Error Message Pip - webdesign909 - Feb-11-2018 Trying to install pip selenium web driver and getting an error message. Please view jpeg file to view the exact message. New to Python and I am trying to do automate the boring stuff video tutorials. [Image: error.jpg] Thank you in advance RE: Error Message Pip - hbknjr - Feb-11-2018 Driver Links Download appropriate driver binary from above link. Add the downloaded executable in system path or specify executable_path in the constructor like. driver = webdriver.Firefox(executable_path='path\to\geckodriver.exe') RE: Error Message Pip - webdesign909 - Feb-11-2018 browser = webdriver.Firefox(executable_path'C:\Users\Dirk\Downloads\geckodriver-v0.19.1-win64\geckodriver.exe') What am I missing? SyntaxError: invalid syntax RE: Error Message Pip - j.crater - Feb-11-2018 Compared to @hbknjr's code a '=' sign between executable_path and path string. RE: Error Message Pip - snippsat - Feb-12-2018 Also raw string r or backlash other way in path / .This is because of escape character. browser = webdriver.Firefox(executable_path=r'C:\Users\Dirk\Downloads\geckodriver-v0.19.1-win64\geckodriver.exe') RE: Error Message Pip - webdesign909 - Feb-12-2018 Thank you Snippsat. Looks like it opened Firefox but I still received an error. I have attached the new image. [Image: new_error.jpg] Thank you in advance. RE: Error Message Pip - snippsat - Feb-12-2018 You have Python 32-bit so you need geckodriver-v0.19.1-win32.zip |