经过大量研究,我找到了解决上述问题的方法。
您只需要做的就是编辑文件:
C:Python34Libsite-packagesseleniumwebdrivercommonservice.py
更改以下行:
self.process = subprocess.Popen(cmd, env=self.env, close_fds=platform.system() != 'Windows', stdout=self.log_file, stderr=self.log_file)
至:
self.process = subprocess.Popen(cmd, stdin=PIPE, stdout=PIPE, stderr=PIPE, shell=False, creationflags=0x08000000)
即使在开发过程中以及在部署到EXE之后,这也将起作用。
可能是硒虫。



