Description
Environment
- Pythonnet version: 2.2.2
- Python version: 2.7
- Operating System: Windows 10
Details
I haven't worked too extensively with Python previously, but I've been experimenting with the idea of writing some utilities using it and embedding them within a .NET application (e.g. Windows Forms, Console, WPF, etc.). Is it possible to embed Python itself within the assembly using Python.NET or is it required that Python be installed on the executing machine?
Any attempts that I made to run outside of my development environment (with Python 2.7 installed), resulted in an error about a missing python27.dll
, which I couldn't seem to figure out how to include, and I may just be missing something.
Ideally, I'd like to be able to package this up as an executable, distribute it to users, who will likely not have Python installed on their machine. I know that the documentation mentions the need for an interpreter and I was wondering if the one available with IronPython would suffice?
Any advice would be appreciated. I understand that this may not be plausible, but I'd love to take advantage of using Python.NET for this if possible.