测试积点老人 发表于 2021-8-2 13:52:47

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)-但是似乎于事无补……

qqq911 发表于 2021-8-3 10:22:21

版本不匹配吧

bellas 发表于 2021-8-3 12:10:29

'C:/Users/Administrator/Desktop/价格数据库资料 -副本这个换个英文名

海海豚 发表于 2021-8-3 14:30:00

下载chromedriver,下载之后将chromedriver.exe放到一个目录下,记得把该目录添加到PATH环境变量中。
页: [1]
查看完整版本: chromedriver在运行时报错 webdriver相关问题!