Message: Unable to start phantomjs with ghostdriver: [WinError 2] 系统找不到指定的文件。

两个方法:

1、指定浏览器路径

browser = webdriver.PhantomJS(executable_path=r'E:\phantomjs\bin\phantomjs')

2、将phantomjs.exe放到所运行的python的Scripts文件夹下

 

posted @ 2020-07-16 16:50  知人知面  阅读(1627)  评论(0编辑  收藏  举报
Live2D