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

Solution: Import the 'call' module

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

from subprocess import call

 

For more information:
Python subprocess call