Is extraction of dipole moments from real-time TDDFT a Python command?


Click here for full thread
Forum Vet
If the directory
/usr/include/python2.7
is missing, this probably means that python 2.7 is either missing or it was not installed under /usr.

Could you please send the output of the following commands for your python 2.7 installation?

python-config --prefix

python-config --includes

python --version


The output of the commandpython-config --prefix should be used for PYTHONHOME

Quote:Xiongyan21 May 15th 3:55 am
Thanks a lot for your help.
The addition of Python2.7 into MAC OS X 10.10.3 still encounters the following error
...
Warning: Nonexistent include directory "/usr/include/python2.7"
Warning: Nonexistent include directory "/usr/include"
Warning: Nonexistent include directory "/usr/Include"
cc -c -I. -I/usr/include/python2.7 -I/usr/include -I/usr/Include -I/usr -I/$NWCHEM_TOP/src/include -I/$NWCHEM_TOP/src/tools/install/include -DMACX -DEXT_INT -DGFORTRAN -DGCC4 -DGCC46 -DPARALLEL_DIAG -DMPICH_NO_ATTR_TYPE_TAGS -g -o task_python.o task_python.c
task_python.c:7:10: fatal error: 'Python.h' file not found
  1. include <Python.h>
        ^
1 error generated.
make[1]: *** [/$NWCHEM_TOP/lib/MACX64/libnwpython.a(task_python.o)] Error 1
make: *** [libraries] Error 1