Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Running Embedded Python.NET Application on Environment without Python Installed? #467

Closed
@rionmonster

Description

@rionmonster

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions