【发布时间】:2022-01-04 12:42:59
【问题描述】:
我尝试导入 undetected_chromedriver
import undetected-chromedriver.v2 as uc
driver = uc.Chrome()
resp = driver.get("https://google.com")
运行上述代码会引发以下错误。
File "C:\Users\Narmu\Desktop\Python_Workspace_Master\venv\lib\site-packages\undetected_chromedriver\cdp.py"
from collections import Mapping, Sequence
ImportError: cannot import name 'Mapping' from 'collections'
我搜索了关于 collections 包,但它在包列表中不可用
我找到了来自in VS Code ImportError: cannot import name 'Mapping' from 'collections'?的建议。
但 collections.abc 也不在包列表中。
我使用 python 版本 3.10。
要完成这项工作,请建议我。
【问题讨论】:
标签: python python-3.x undetected-chromedriver