Subprocess error in python
You are importing Popen
and PIPE
from subprocess
. Now you can access Popen
or PIPE
directly, no need of subprocess
as prefix.
If you want to use subprocess
as prefix then change your import.
import subprocess
Then subprocess.Popen
will work.