Python 3.x 无法使用bokeh/HoloView导出图像

Python 3.x 无法使用bokeh/HoloView导出图像,python-3.x,selenium,bokeh,geckodriver,holoviews,Python 3.x,Selenium,Bokeh,Geckodriver,Holoviews,我最初安装了:- conda安装selenium geckodriver firefox-c conda forge从anaconda提示符上的bokeh文档页面,我可以将图像导出为png并在Internet Explorer上打开图像作为URL。 今天我突然发现了这个错误:- RuntimeError:系统路径上既没有firefox和geckodriver,也没有Chrome浏览器和chromedriver的变体。您可以在Spyder上使用“conda安装-c conda forge fire

我最初安装了:-

conda安装selenium geckodriver firefox-c conda forge
从anaconda提示符上的bokeh文档页面,我可以将图像导出为png并在
Internet Explorer上打开图像作为URL。
今天我突然发现了这个错误:-

RuntimeError:系统路径上既没有firefox和geckodriver,也没有Chrome浏览器和chromedriver的变体。您可以在Spyder上使用“conda安装-c conda forge firefox geckodriver”安装前者。
我检查了
路径
,geckodriver很像最初的
路径。(`C:\Users\user1\AppData\Local\conda\conda\pkgs\geckodriver-0.27.0-h33f27b4\u 0\Scripts\geckodriver.exe')

我无法理解为什么它突然停止工作,尝试了一些其他SO解决方案,比如安装chromium驱动程序:-
conda安装-c conda forge python chromedriver二进制文件
在anaconda提示符中

`from selenium.webdriver import Chrome,ChromeOptions
 options=ChromeOptions()
 options.add_argument('--headless')
my_driver = webdriver.Chrome(executable_path=r'C:\Users\user1\AppData\Local\conda\conda\pkgs\python-chromedriver-binary-87.0.4280.20.0-py38h32f6830_0\Lib\site-packages\chromedriver_binary\chromedriver.exe',options=options)`
这给了我:-

SessionNotCreatedException:未创建会话:此版本的ChromeDriver仅支持Chrome版本87当前浏览器版本为83.0.4103.116,二进制路径为C:\Program Files(x86)\Google\Chrome\Application\Chrome.exe
错误

我不允许从网站上手动下载驱动程序以适应chrome浏览器的版本/更新。所以
chrome
驱动程序被排除在外。 我只安装了
IE
Chrome
浏览器,我想知道为什么我最初在
IE
中打开图像的方法不再有效,以及如何使它再次有效


备注:-我尝试更新
geckodriver
(再次运行相同的
conda安装selenium geckodriver firefox-c conda forge
,geckodriver被更新)和
Selenium
但是它没有解决问题。

你能给我们展示一下你使用的代码你打开geckodriver吗?没有必要从bokeh.io导入秀打开geckodriver,export\u png
该导入直到昨天才开始工作。由于它不起作用,我尝试显式设置webdriver路径,从selenium import webdriver driver=webdriver.Firefox(可执行文件\u path=r'C:\Users\user1\AppData\Local\conda\conda\pkgs\geckodriver-0.27.0-h33f27b4\u 0\Scripts\geckodriver.exe')
。在你说了之后,现在就尝试了这个,它说的是
SessionNotCreatedException:找不到匹配的功能集
你能给我们看看你使用的代码打开geckodriver吗?没有必要从bokeh.io import show打开geckodriver,export\u png该导入直到昨天才开始工作。由于它不起作用,我尝试显式设置webdriver路径,从selenium import webdriver driver=webdriver.Firefox(可执行文件\u path=r'C:\Users\user1\AppData\Local\conda\conda\pkgs\geckodriver-0.27.0-h33f27b4\u 0\Scripts\geckodriver.exe')。在您说了之后,现在尝试了这个,它说
SessionNotCreatedException:找不到匹配的功能集