How to Solve NameError: name 'PIPE' is not defined -- subprocess

Solution: Import the 'PIPE' module

To Solve the error, add the following line to the top of your code.

from subprocess import PIPE

 

For more information:
Python subprocess PIPE