Failed to apply run_psi4

While Itried to import run_psi4 in my linux python environment, it reports :

----> 6 from psi4 import run_psi4

ImportError: cannot import name 'run_psi4' from 'psi4' (/home/chemiq/anaconda3/envs/psi4/lib/python3.8/site-packages/psi4/__init__.py)

I have tried copy run_psi4.py from Github and past in, but it wouldn’t work.
Why did this issue happen? Does the original psi4 package not include the method?

There is a run_psi4.py file but no such function. So you cannot import it.

What are you trying to do?

I defined a molecule, and I was trying to check its hf_energy and fci_energy.

I presumed run_psi4 as a driver, which could initiate those data.

In this case, which method is approriate to compute the related energy of a molecule?

If you want to use psi4 as a python module, check out this part:
https://psicode.org/psi4manual/master/psiapi.html

1 Like