尝试使用chromedrivers运行Python脚本时出现问题

问题描述

我正在尝试在需要chromedrivers的python中运行脚本。 该脚本可在Windows下完美运行,但我试图使其在Raspberry Pi上运行的Kali Linux上运行。 我没有在Kali Linux上成功安装chrome,所以我安装了Chrome。 当我尝试运行脚本时,这就是为什么我得到:

文件“ main.py”,第124行,在 驱动程序= webdriver.Chrome(CHROME_DVR_DIR) init 中的文件“ /usr/local/lib/python2.7/dist-packages/selenium/webdriver/chrome/webdriver.py”,第73行 self.service.start() 开始时,文件“ /usr/local/lib/python2.7/dist-packages/selenium/webdriver/common/service.py”,第76行 stdin = PIPE) init 中的文件“ /usr/lib/python2.7/subprocess.py”,行394 errread,errwrite) _execute_child中的文件“ /usr/lib/python2.7/subprocess.py”,行1047 提高child_exception OSError:[Errno 8]执行格式错误

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...