Search code examples
c++pythonstatic-linkingpython-embedding

embedded python in c++, do i need python installed


when embedding python in a c++ application using

#include "python2.6/Python.h"

and linking -lpython2.6

does the target computer (computer running the final compiled program) need to have python installed in order to work with my application?

thanks


Solution

  • It depends. Are you linking the libraries statically or dynamically? If you link dynamically then yes your target computer needs to have Python installed.