Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

install "pip undetected-chromedriver" for selenium python

I'm trying to make an autofiller using selenium, but it couldn't be done. so I decided to use undetected chromedriver to finish the automation.

I am having some difficulty here to import the undetected-chromedriver.

I already downloaded it by inputting the command line: pip install undetected-chromedriver

But when I put the import undetected_chromedriver as uc, the complier doesn't recognize it.



Below is the Error message after trying to import undetected-chromedriver:

import undetected_chromedriver as uc

ModuleNotFoundError: No module named 'undetected_chromedriver'

like image 316
Qing Bai Avatar asked Apr 02 '26 22:04

Qing Bai


1 Answers

Try the following

# navigate into the project directory with your python script
cd presearch

# create virtual environment
python3 -m venv venv

# activate the virtual environment
source venv/bin/activate

# install required pip packages
pip3 install undetected-chromedriver
like image 120
BenRoe Avatar answered Apr 08 '26 14:04

BenRoe



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!