I have installed two versions of python in my system such as python 3.6 and python 3. I am running a program in PyCharm which is running fine while the same script is not running in a Jupyter Notebook. The error shown:
ModuleNotFoundError: No module named 'selenium'
I had installed jupyter using anaconda. The following are my questions:
from selenium import webdriver
driver = webdriver.Chrome(r'C:\Users\Admin\Desktop\sriyam\chromedriver.exe')
driver.get('https://python.org')
have you install selenium
install it
try
conda install -c conda-forge selenium
if error pops up again try this
pip install selenium
note:-install it from conda prompt hope it may help
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.