I am creating an application in C# with Visual Studio, which shall run some Python-Scripts and get their return values. For that I want to use Python.Net (or Python for .Net). I installed Python.Net via anaconda.
But if I run the program I get the error that the python36.dll was not found:
System.DllNotFoundException: Unable to load DLL 'python36':
The specified module could not be found
If I want to load the python36.dll of anaconde as a reference to my project I get:
Reference "C:\Programm Files (x86\Micrtosoft\Visual Studio\Shared\Anaconde3_64\python36.dll" can't be
added, Please make sure that the file is accessible and that it is
a valid assembly or COM component.
I tried to register the dll with:
regsvr32
did not work either.