Skip to content Skip to sidebar Skip to footer

Run Python Code From C# Does Not Return A Value

Good day! I was recommended to try an approach to allow c# to run python code and then the python output would be sent to the c# program where it could be used. see Link for exampl

Solution 1:

The mistake I made was to choose the wrong python.exe file to run it from. I later changed this path to the Path\To\python3.8.exe and after installing all the correct packages the problem was solved a very helpful guide was printing out the error which is set

error = process.StandardError.ReadToEnd();

And this allowed me to find my mistake

Post a Comment for "Run Python Code From C# Does Not Return A Value"