Python 在没有Gui的centos上使用chrome驱动程序运行selenium

Python 在没有Gui的centos上使用chrome驱动程序运行selenium,python,selenium,google-chrome,centos,selenium-chromedriver,Python,Selenium,Google Chrome,Centos,Selenium Chromedriver,我使用chrome驱动程序作为web驱动程序,用python selenium编写了一些代码。当我在我的系统(mac os)中运行代码时,代码工作正常。Chrome浏览器已打开,selenium工作正常。但是当我想在Centos 7中运行没有GUI的代码时,selenium无法与web驱动程序匹配并运行代码。虽然我安装了google chrome stable并使用了相同的web驱动程序,但selenium无法运行web驱动程序 driver = webdriver.Chrome(driver_

我使用chrome驱动程序作为web驱动程序,用python selenium编写了一些代码。当我在我的系统(mac os)中运行代码时,代码工作正常。Chrome浏览器已打开,selenium工作正常。但是当我想在Centos 7中运行没有GUI的代码时,selenium无法与web驱动程序匹配并运行代码。虽然我安装了google chrome stable并使用了相同的web驱动程序,但selenium无法运行web驱动程序

driver = webdriver.Chrome(driver_path=chromedrive75)

因此,我不知道如何修复代码并在centos操作系统上运行

@Vahid,请检查与服务器兼容的chrome web浏览器版本,并尝试在无头模式下运行。

我检查了chrome web drive的几个版本,从73到76。带和不带选项(无头模式)。不工作。@Vahid什么是chromedriver版本。您可以通过键入chromedriver--version来获得它。我认为这是不相容的。请仔细检查您遇到了哪些错误?