Python 找不到与Windows 10相匹配的功能集

Python 找不到与Windows 10相匹配的功能集,python,selenium,selenium-webdriver,web-scraping,geckodriver,Python,Selenium,Selenium Webdriver,Web Scraping,Geckodriver,我刚给自己造了一台新电脑。我正要去刮东西,但我得到了一个错误“找不到匹配的功能集”“不知道为什么会触发这个错误 版本 堆栈跟踪错误 剧本 剩余堆栈跟踪 问题在于Firefox的安装。它最初安装在一个奇怪的目录中,当时Selenium不工作。在C:\Program Files\Mozilla Firefox中进行简单的重新安装似乎就能解决问题。您在github上尝试过此问题线程中的所有解决方案吗?@BugWhisper使用错误堆栈更新问题trace@BugWhisperer或讨论对您有帮助吗?@D

我刚给自己造了一台新电脑。我正要去刮东西,但我得到了一个错误“
找不到匹配的功能集”
“不知道为什么会触发这个错误

版本 堆栈跟踪错误 剧本 剩余堆栈跟踪
问题在于Firefox的安装。它最初安装在一个奇怪的目录中,当时Selenium不工作。在
C:\Program Files\Mozilla Firefox
中进行简单的重新安装似乎就能解决问题。

您在github上尝试过此问题线程中的所有解决方案吗?@BugWhisper使用错误堆栈更新问题trace@BugWhisperer或讨论对您有帮助吗?@DebanjanB CMD错误是堆栈跟踪终止的地方,但是我已经从堆栈跟踪中添加了一些。如果你发现什么,请告诉我funny@Kraay89问题解决了。参考我对这个问题的回答
Windows 10 Home 10.0.18362 Build 18362 (x64)
Firefox 69.0.1 (64-bit) # also tried with the last version of firefox
Python 3.7.4 (64 bit (AMD64))
Selenium 3.141.0
Geckodriver 0.25.0 (64-bit, though I've tried with the 32-bit one and same error)
File "C:\Users\Anthony\Desktop\ZzzGiants\Scrape\name_dictionary.py", line 30, in create_webdriver_instance
    return webdriver.Firefox()
# -*- coding: utf-8 -*-
from selenium import webdriver
from selenium.webdriver import Firefox
from selenium.webdriver.firefox.options import Options

def create_webdriver_instance():
    #options = Options()
    #options.add_argument('--headless')
    #return webdriver.Firefox(options=options)
    return webdriver.Firefox()
    """ commented out the options because i was getting this error, but error still persists """

ff = create_webdriver_instance()
...
File "C:\Users\Anthony\AppData\Local\Programs\Python\Python37\lib\site-packages\selenium\webdriver\firefox\webdriver.py", line 174, in __init__
    keep_alive=True)
File "C:\Users\Anthony\AppData\Local\Programs\Python\Python37\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 157, in __init__
    self.start_session(capabilities, browser_profile)
File "C:\Users\Anthony\AppData\Local\Programs\Python\Python37\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 252, in start_session
    response = self.execute(Command.NEW_SESSION, parameters)
File "C:\Users\Anthony\AppData\Local\Programs\Python\Python37\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 321, in execute
    self.error_handler.check_response(response)
File "C:\Users\Anthony\AppData\Local\Programs\Python\Python37\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 242, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.SessionNotCreatedException: Message: Unable to find a matching set of capabilities