Vastsea 发表于 2020-8-6 13:59:24

运行程序时如下报错,什么原因呢?

Traceback (most recent call last):
File "C:\Users\xxxx\AppData\Local\Programs\Python\Python38-32\lib\site-packages\selenium\webdriver\common\service.py", line 72, in start
    self.process = subprocess.Popen(cmd, env=self.env,
File "C:\Users\xxxx\AppData\Local\Programs\Python\Python38-32\lib\subprocess.py", line 854, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\Users\xxxx\AppData\Local\Programs\Python\Python38-32\lib\subprocess.py", line 1307, in _execute_child
    hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: The system cannot find the file specified

zltzlt 发表于 2020-8-6 13:59:34

发完整代码上来看看

xiaosi4081 发表于 2020-8-6 13:59:59

管理员权限运行

陈尚涵 发表于 2020-8-6 17:11:33

没有权限,是因为打包exe后可能出现了某某问题。你可以右键Exe程序,点击“以管理员身份运行”就好了

如果问题已经解决,请设置下最佳答案
页: [1]
查看完整版本: 运行程序时如下报错,什么原因呢?