Such code:
from subprocess import check_output b = check_output(["wmic", "product get name,version"]) I catch such an error:
"product get name - Alias not found. Traceback (most recent call last): File "n.py", line 3, in <module> check_output(["wmic", "product get name,version"]) File "C:\Python27\lib\subprocess.py", line 223, in check_output raise CalledProcessError(retcode, cmd, output=output) subprocess.CalledProcessError: Command '['wmic', 'product get name,version']' re turned non-zero exit status 44135 I thought the problem was in this part: "product get name,version" (but my fix attempts were not successful) What is the problem?
["wmic", "product", "get", "name,version"]- andreymal