selenium.chrome不是有效的win32应用程序

解决Python调试OSError: [WinError 193] %1 不是有效的 Win32 应用程序

python调试出现OSError: [WinError 193] %1 不是有效的 Win32 应用程序,很有可能是你的下面的webdriver.Chrome文件内容和selenium和chromedriver的版本不符合

from selenium import webdriver
from bs4 import BeautifulSoup
import requests
driver = webdriver.Chrome(r'C:\Users\wangxinhui\Desktop\facebook爬虫\fbCrawler\chromedriver.exe')

切换至和chromedriver和selenium相符合的版本即可
可以直接看这位大佬的写的版本对应关系即可
selenium最新chromedriver驱动:https://blog.csdn.net/qq_38184270/article/details/88128051

猜你喜欢

转载自blog.csdn.net/l641208111/article/details/105585350