I am using subprocess to capture output of another python file into the current one.Here is my code-
    import subprocess
    a= subprocess.run('python3 try1.py', capture_output=True,shell=True)
But when I run the code, I get an error-
<pre>Traceback (most recent call last):
  File "test2.py", line 4, in <module>
    c1= subprocess.run('python3 test2.py', capture_output=True,shell=True)
  File "/usr/lib/python3.6/subprocess.py", line 423, in run
    with Popen(*popenargs, **kwargs) as process:
TypeError: __init__() got an unexpected keyword argument 'capture_output'
</pre>
I am running Python 3.6.8. Also, a file named subprocess.py doesn't exist on my PC. It used to, but I deleted it. Thanks for all help!
