1

I have a .NET application written in C#, on Visual Studio, that calls some Python scripts to run data through some Machine Learning scripts, models and processes.

I have a requirement to distribute the software as a single installation package/executable onto Windows platform machines that may not have either python nor .NET runtime libraries installed.

Distribution of either a .NET application or a Python application (to include the Python runtimes) appears to be well documented, but how do I marry the two?

Note: It does not matter whether the final installation executable is produced by Python or .NET (Visual Studio) only that it is distributed as one installation package/executable.

ChrisBD
  • 9,104
  • 3
  • 22
  • 35

1 Answers1

0

I do not have experience with C#, but you could try to compile the python script using pyinstaller, which compiles python code to a stand-alone executable.

Then, you can try embedding this executable into your C# program, as discussed here.