chromedriver在运行时报错 webdriver相关问题!
Traceback (most recent call last):File "C:\Users\Le'novo\AppData\Local\Temp\Rar$DIa5348.42032\baichuan.py", line 65, in
get_table(urltb['urlset'])
File "C:\Users\Le'novo\AppData\Local\Temp\Rar$DIa5348.42032\baichuan.py", line 33, **in get_table
driver = webdriver.**Chrome('C:/Users/Administrator/Desktop/价格数据库资料 - 副本/python/chromedriver')
File "C:\Users\Le'novo\AppData\Local\Programs\Python\Python39\lib\site-packages\selenium\webdriver\chrome\webdriver.py", line 73, in init
self.service.start()
File "C:\Users\Le'novo\AppData\Local\Programs\Python\Python39\lib\site-packages\selenium\webdriver\common\service.py", line 98, in start
self.assert_process_still_running()
File "C:\Users\Le'novo\AppData\Local\Programs\Python\Python39\lib\site-packages\selenium\webdriver\common\service.py", line 109, in assert_process_still_running
raise WebDriverException(
selenium.common.exceptions.WebDriverException: Message: Service C:/Users/Administrator/Desktop/价格数据库资料 - 副本/python/chromedriver unexpectedly exited. Status code was: 1安装了chrome(win32的 但是电脑是64)-但是似乎于事无补……
版本不匹配吧 'C:/Users/Administrator/Desktop/价格数据库资料 -副本这个换个英文名 下载chromedriver,下载之后将chromedriver.exe放到一个目录下,记得把该目录添加到PATH环境变量中。
页:
[1]