ModuleNotFoundError: No module named 'undetected_chromedriver.v2'
其他回答都是什么鬼,没翻文档吗
原文:
v2 has become the main module, so no need for references to v2 anymore. this mean you can now simply use:
import undetected_chromedriver as uc
driver = uc.Chrome()
driver.get('https://nowsecure.nl')
for backwards compatibility, v2 is not removed, but aliassed to the main module.
用import undetected-chromedriver as uc 就行, undetected-chromedriver.v2 已经被合并了
undetected_chromedriver.v2 这个包没有导入,pip install 安装下。
问题点:库缺失错误,需要安装undetected-chromedriver库才能使用undetected_chromedriver.v2
undetected_chromedriver的安装指令如下:
pip install undetected-chromedriver