Getting an error - AttributeError: 'module' object has no attribute 'run' while running subprocess.run(["ls", "-l"])
<p>I am running on a AIX 6.1 and using Python 2.7. Want to execute following line but getting an error.</p>

<pre><code>subprocess.run(["ls", "-l"])
Traceback (most recent call last):
  File "&lt;stdin&gt;", line 1, in &lt;module&gt;
AttributeError: 'module' object has no attribute 'run'
</code></pre>