美文网首页
2020-03-03 python 报错 [WinError 2

2020-03-03 python 报错 [WinError 2

作者: 302室 | 来源:发表于2020-03-03 12:01 被阅读0次

    File "I:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\subprocess.py",
    根据提示找到lib中的subprocess.py文件,CTRL+f查找class Popen模块,再将这个模块中的
    init函数中的shell = False 改成shell = True

    来源:https://blog.csdn.net/weixin_44853744/article/details/102680386

      File "I:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\selenium\webdriver\common\service.py", line 72, in start
        self.process = subprocess.Popen(cmd, env=self.env,
      File "I:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\subprocess.py", line 854, in __init__
        self._execute_child(args, executable, preexec_fn, close_fds,
      File "I:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\subprocess.py", line 1307, in _execute_child
        hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
    FileNotFoundError: [WinError 2] 系统找不到指定的文件。
    
    

    相关文章

      网友评论

          本文标题:2020-03-03 python 报错 [WinError 2

          本文链接:https://www.haomeiwen.com/subject/uvvqlhtx.html