I want to perform calculations on a large number of files using gaussian software. It takes the name of input file & the name of the output file in which it will write the results of the calculations. One of the files is as follows:
h2plus_d2.0.in
On the terminal, the following code is executing successfully:
g16 /home/prathvisingh526/Documents/h2plus_d2.0.in h2plus_d2.0.out
However, when I am doing the same thing on python using the following code:
import subprocess
subprocess.run("g16 /home/prathvisingh526/Documents/h2plus_d2.0.in h2plus_d2.0.out",shell=True)
I am getting the following error
/bin/sh: 1: g16: not found
Kindly help!