python selenium报错ValueError: Timeout value connect was <...>, but it must be an int, float or None.
admin 阅读:41 2024-03-22
后台-插件-广告管理-内容页头部广告(手机) |
因更换系统,重新安装了selenium。命令:pip install selenium
默认版本为selenium4,版本不太兼容,所以卸载:pip uninstall selenium
更换为旧版本:pip install selenium==3.141.0
安装完以后显示:
Successfully installed selenium-3.141.0 urllib3-2.0.2(坑出现了)
运行一下代码以后报错:
- 1
- 2
- 3
报错:
ValueError: Timeout value connect was