|
发表于 2018-7-26 11:29:32
|
显示全部楼层
为啥我提示错误。。。
Traceback (most recent call last):
File "C:\Python34\lib\site-packages\selenium\webdriver\common\service.py", line 76, in start
stdin=PIPE)
File "C:\Python34\lib\subprocess.py", line 858, in __init__
restore_signals, start_new_session)
File "C:\Python34\lib\subprocess.py", line 1111, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] 系统找不到指定的文件。
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\love-\Desktop\Cartoon.py", line 39, in <module>
browser=webdriver.PhantomJS(desired_capabilities=dcap)
File "C:\Python34\lib\site-packages\selenium\webdriver\phantomjs\webdriver.py", line 56, in __init__
self.service.start()
File "C:\Python34\lib\site-packages\selenium\webdriver\common\service.py", line 83, in start
os.path.basename(self.path), self.start_error_message)
selenium.common.exceptions.WebDriverException: Message: 'phantomjs' executable needs to be in PATH. |
|