Python PhantomJS和Selenium:WebDriver意外退出。状态代码为:127

Python PhantomJS和Selenium:WebDriver意外退出。状态代码为:127,python,selenium,phantomjs,Python,Selenium,Phantomjs,用硒和pyhton我有 WebDriverException: Message: Service /usr/local/bin/phantomjs unexpectedly exited. Status code was: 127 我已经在脚本中调用了executeble_路径,并且路径正确: whereis phantomjs phantomjs: /usr/local/bin/phantomjs 这里说的是安装libfontconfig,但我已经知道了: libfontconfig1 i

用硒和pyhton我有

WebDriverException: Message: Service /usr/local/bin/phantomjs unexpectedly exited. Status code was: 127
我已经在脚本中调用了executeble_路径,并且路径正确:

whereis phantomjs
phantomjs: /usr/local/bin/phantomjs
这里说的是安装libfontconfig,但我已经知道了:

libfontconfig1 is already the newest version (2.11.94-0ubuntu2)

如何解决此问题?

您可能需要关闭chromedriver的二进制文件并使用它。当您使用它时,请确保使用绝对路径。

您可能需要关闭chromedriver的二进制文件并使用它。使用时,请确保使用绝对路径。

这里也有同样的问题。目前正在调查。有类似的情况是的,但我已经在这里安装了相同的libfontconfig。目前正在调查。有类似的情况是的,但我已经安装了libfontconfig