Windows can't find the file on subprocess.call()

前端 未结 7 1912
孤街浪徒
孤街浪徒 2020-11-27 14:10

I am getting the following error:

WindowsError: [Error 2] The system cannot find the file specified

My code is:

subprocess.         


        
7条回答
  •  借酒劲吻你
    2020-11-27 15:07

    If you are using powershell, then in it will be subprocess.call(['powershell','-command','dir']). Powershell supports a large portion of POSIX commands

提交回复
热议问题