2

I'm using a Jupyter Lab notebook which run on google cloud instance. After I installed chromedriver using the following command line:

wget https://chromedriver.storage.googleapis.com/85.0.4183.87/chromedriver_linux64.zip

then I unzip it with:

unzip chromedriver_linux64.zip

After which I run the following cell:

from selenium import webdriver

path = '/home/jupyter/chromedriver' 
driver = webdriver.Chrome(path) 

And this is where I get the error : WebDriverException: Message: unknown error: cannot find Chrome binary (I'm pretty sure the path to Chromedriver is right though)

This work perfectly on my local machine but I'm a bit lost as to why I can't have it work on a Google Cloud instance. Can you please help me out with this issue ? (Also I have tried other things by looking at other posts online but without success). Thank you

1 Answer 1

1

Here is an example on how to install Selenium on a Jupyter notebook.

It is recommended to install it wit pip:

!pip install selenium

and to import os and sys:

import os
import sys
os.path.dirname(sys.executable)
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.