此时,需要自己配置geckodriver 下载geckodriver,地址:https://github.com/mozilla/geckodriver/releases下载后解压得到geckodriver.exe将geckodriver.exe放到Firefox的安装目录下将火狐安装目录添加到环境变量path中重启IDLE 转载于:https://www.cnblogs.com/czhang2-12/p/10254201.html