0

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

1 Answer 1

2

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

Sign up to request clarification or add additional context in comments.

1 Comment

Statically or dynamically linking is not important, since you can't link Python statically. You could link the interpreter and language core statically, but then you'd still need a bunch of Python modules for full functionality, effectively making it impossible to link the whole statically.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.