[Python.NET] How to use Python for .NET? Have a problem to use in Windows 2008 R2 SP1

Seungweon Park swpark71 at gmail.com
Fri Mar 22 21:44:46 CET 2013


I just downloaded pythonnet-2.0-Beta0-clr4.0_140_py27.zip from
http://sourceforge.net/projects/pythonnet/, and extract to c:\temp and ran
nPython.exe, got below error.

Current my test machine has
Windows 2008 R2 SP1 with Python 2.7.3 (32bit).

When looked the error, and googled it. someone says I need to copy
python27.dll into c:\windows\system32. However, I can't find the file. Any

Thank you,


Unhandled Exception: System.DllNotFoundException: Unable to load DLL
'python27': The specified module could not be found
. (Exception from HRESULT: 0x8007007E)
   at Python.Runtime.Runtime.Py_Initialize()
   at Python.Runtime.Runtime.Initialize() in
D:\Users\Barton\Documents\Visual Studio 2010\Projects\PySharp\trunk\pythonn
et\src\runtime\runtime.cs:line 78
   at Python.Runtime.PythonConsole.Main(String[] args) in
D:\Users\Barton\Documents\Visual Studio 2010\Projects\PySharp\
trunk\pythonnet\src\console\pythonconsole.cs:line 21
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pythondotnet/attachments/20130322/4de2183c/attachment.html>

More information about the PythonDotNet mailing list