【发布时间】:2019-03-19 13:01:17
【问题描述】:
我需要一些有关壁虎驱动程序的帮助。我已经将它安装在 Windows 的环境路径上,但仍然出现此错误,我真的不知道如何修复它。
File "Raport_FR_CH_Nata.py", line 1, in <module>
from selenium import webdriver
File "C:\Users\cursu\AppData\Local\Programs\Python\Python37-32\lib\site-packages\selenium-3.141.0-py3.7.egg\selenium\webdriver\__init__.py", line 18, in <module>
from .firefox.webdriver import WebDriver as Firefox # noqa
File "C:\Users\cursu\AppData\Local\Programs\Python\Python37-32\lib\site-packages\selenium-3.141.0-py3.7.egg\selenium\webdriver\firefox\webdriver.py", line 26, in <module>
from selenium.webdriver.remote.webdriver import WebDriver as RemoteWebDriver
File "C:\Users\cursu\AppData\Local\Programs\Python\Python37-32\lib\site-packages\selenium-3.141.0-py3.7.egg\selenium\webdriver\remote\webdriver.py", line 26, in <module>
from .webelement import WebElement
File "C:\Users\cursu\AppData\Local\Programs\Python\Python37-32\lib\site-packages\selenium-3.141.0-py3.7.egg\selenium\webdriver\remote\webelement.py", line 43, in <module>
getAttribute_js = pkgutil.get_data(_pkg, 'getAttribute.js').decode('utf8')
File "C:\Users\cursu\AppData\Local\Programs\Python\Python37-32\lib\pkgutil.py", line 637, in get_data
return loader.get_data(resource_name)
File "<frozen importlib._bootstrap_external>", line 916, in get_data
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\cursu\\AppData\\Local\\Programs\\Python\\Python37-32\\lib\\site-packages\\selenium-3.141.0-py3.7.egg\\selenium\\webdriver\\remote\\getAttribute.js'
用户正在运行 Windows 10。
谢谢你, 我
【问题讨论】:
标签: python selenium webdriver geckodriver