this code used to work but now it doesn’t pip show undetected_selenium shows it is installed but when I run it it says it cannot be found? This previously worked but after a reboot it does not work.
any ideas?
(FissionStaking2) robm@server1:~/code/Arcgis/FissionStaking2$ pip show undetected_chromedriver
Name: undetected-chromedriver
Version: 3.5.5
Summary: ('Selenium.webdriver.Chrome replacement with compatiblity for Brave, and other Chromium based browsers.', 'Not triggered by CloudFlare/Imperva/hCaptcha and such.', 'NOTE: results may vary due to many factors. No guarantees are given, except for ongoing efforts in understanding detection algorithms.')
Home-page: https://github.com/ultrafunkamsterdam/undetected-chromedriver
Author: UltrafunkAmsterdam
Author-email: [email protected]
License: GPL-3.0
Location: /home/robm/.local/lib/python3.10/site-packages
Requires: requests, selenium, websockets
Required-by:
(FissionStaking2) robm@server1:~/code/Arcgis/FissionStaking2$ python test10.py
Traceback (most recent call last):
File "/home/robm/code/Arcgis/FissionStaking2/test10.py", line 2, in <module>
import undetected_chromedriver as uc
ModuleNotFoundError: No module named 'undetected_chromedriver'
3
According to my experience, you should try using pip rather than Visual Studio Code. If it doesn’t work, try installing venv module and using the following commands:
python -m venv env
source env/Scripts/Activate
pip install undetected_chromedriver
Note: Here the name of environment is named “env“. Replace the name with something else and don’t use a space character in the name. Also do this on the Git Command line
A. Singh is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.