
在树莓派上运行 selenium 时遇到 “exec format error: ‘chromedriver’”
在树莓派上使用 python 运行 selenium 时,你可能会遇到以下错误消息:“exec format error: ‘chromedriver’”。此错误表示系统无法找到或执行 chromedriver 程序。
要解决此问题,请确保已为你的 python 脚本指定了 chromedriver 的路径。你可以通过以下步骤执行此操作:
export path=$path:/usr/lib/chromium-browser/chromedriver
source ~/.bashrc
现在,当你运行 python 脚本时,它将能够找到 chromedriver 程序,并且应该能够正常工作。
以上就是树莓派上运行 Selenium 时出现 “Exec format error: ‘chromedriver’”该如何解决?的详细内容,更多请关注php中文网其它相关文章!
每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号