幻影不只是在cron工作

2024-09-26 22:10:04 发布

您现在位置:Python中文网/ 问答频道 /正文

我有一个使用PhantomJS的Python脚本。当我直接运行脚本时,它运行得非常好。当我在cron作业中运行它时,我得到:

selenium.common.exceptions.WebDriverException: 
Message: Unable to start phantomjs with ghostdriver: 
[Errno 2] No such file or directory: 'phantomjs'

有什么办法解决这个问题吗?在

哦,顺便说一句,其他的驱动程序(比如Firefox)即使在cron作业中也能工作;只是幻影js不起作用。在


Tags: to脚本messageseleniumwith作业commonphantomjs

热门问题