You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add python's folder and Lib folder in the Path environment variable
Install pythonnet using pip
pip install pythonnet
Note: requires the wheel package.
Install any other python libraries that you'd be using in the winforms appln.
Add the path of Python.Runtime.dll to the winforms reference list: ( Project→Add preferences menu in VS)
Note: the DLL file would be located in the "...\Python 3.5\Lib\site-packages" folder.
Note: Do not use pythonnet from nuget package. It was excruciatingly hard to match the python and the winform architectures to match. Installing pythonnet using pip is a lot easier.