无法使用bokeh / holoviews导出图像

问题描述

我最初安装了:-

在蟒蛇提示bokeh文档页面

conda install selenium geckodriver firefox -c conda-forge我能够将图像导出为png,并在Internet Explorer上将其打开为URL。 今天突然我得到了这个错误:-

RuntimeError: Neither firefox and geckodriver nor a variant of chromium browser and chromedriver are available on system PATH. You can install the former with 'conda install -c conda-forge firefox geckodriver'.在Spyder上 我检查了path,最初的path中有很多geckodriver。(`C:\ Users \ user1 \ AppData \ Local \ conda \ conda \ pkgs \ geckodriver-0.27.0-h33f27b4_0 \ Scripts \ geckodriver.exe')

我无法理解为什么突然停止工作,尝试了其他SO答案(例如安装Chrome驱动程序)的一些修复方法:- conda install -c conda-forge python-chromedriver-binary在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: session not created: This version of ChromeDriver only supports Chrome version 87 Current browser version is 83.0.4103.116 with binary path C:\Program Files (x86)\Google\Chrome\Application\chrome.exe错误

不允许我从网站上手动下载驱动程序以适合版本/更新chrome浏览器。因此,排除了chrome驱动程序。 我只安装了IEChrome浏览器,我想知道为什么我在IE中打开图像的初始方法不再起作用,以及如何使其再次起作用。

P.S:-我尝试更新geckodriver(再次运行相同的conda install selenium geckodriver firefox -c conda-forge,并且更新了geckodriver)和Selenium,但未能解决问题。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)