2

I'm trying to embed Python in my C++ program so users can run their Python scripts (with my python extensions) at runtime, but this requires them to have Python installed and have python27.dll at runtime.

How can I do this without forcing them to install Python2.7?

Alternatively, where does python27.dll look to load Python at runtime? Can I supply the python libraries in my installed directory and have my local copy of python27.dll use them instead of looking for a system-wide installation (which is usually in C:\Python27)

As another option, can I have an entire Python system statically linked to my dll?

Thanks in advance!

4
  • This may be helpful; So may this. Commented Jan 25, 2018 at 12:16
  • @ArnavBorborah regarding the 2nd link, is there a similar embedded version for python2.7? i can't seem to see it on its download page. Commented Jan 25, 2018 at 13:58
  • Hmm, there doesn't seem to be one. I went through the releases back to ~3.1, and then the file stops appearing. This appears to be a problem... Commented Jan 25, 2018 at 14:10
  • *3.5, not 3.1. It was introduced in 3.5 Commented Jan 25, 2018 at 14:17

0

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.