简体   繁体   中英

How to install selenium for Jupyter Notebook?

I have run the command pip install selenium , and it can execute from selenium import webdriver in terminal, but it cannot execute this line in Jupyter Notebook, which shows "ModuleNotFoundError: No module named 'selenium'" . Besides, I also copied chromedriver.exec file into the path of my jupyter. Does anyone konw how to solve it?

在此处输入图片说明 在此处输入图片说明

If you are using the Anaconda navigator to run Jupyter then you need to run the pip install selenium command within the Anaconda prompt.

I believe that your Python environment in Jupyter differs from the Python environment that may be in your PATH.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM