我检查了软件包中的文件以及要查找的.exe,并且从我所看到的路径是正确的,但是由于某些原因它不会导入webbot。
此处是代码:
from webbot import Browser
web = Browser()
web.go_to('google.com')
web.type('hello its me')
web.press(web.Key.ENTER)
web.go_back()
web.click('Sign in')
web.type('mymail@gmail.com' , into='Email')
web.click('NEXT' , tag='span')
web.type('mypassword' , into='Password' , id='passwordFieldId')
web.click('NEXT' , tag='span')
错误在这里:
Traceback (most recent call last):
File "1.py", line 2, in <module>
web = Browser('C:\Program Files (x86)\Python37-32\lib\site-packages\webbot\drivers\chrome_windows')
File "C:\Program Files (x86)\Python37-32\lib\site-packages\webbot\webbot.py", line 50, in __init__
os.chmod(driverpath , 0o755 )
FileNotFoundError: [WinError 2] The system cannot find the file specified: 'C:\\Program Files (x86)\\Python37-32\\lib\\site-packages\\webbot\\drivers\\chrome_windows'