Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #86704 > unrolled thread

Python27.dll could not be found

Started bySarvagya Pant <sarvagya.pant@gmail.com>
First post2015-03-02 11:45 +0545
Last post2015-03-02 11:45 +0545
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python


Contents

  Python27.dll could not be found Sarvagya Pant <sarvagya.pant@gmail.com> - 2015-03-02 11:45 +0545

#86704 — Python27.dll could not be found

FromSarvagya Pant <sarvagya.pant@gmail.com>
Date2015-03-02 11:45 +0545
SubjectPython27.dll could not be found
Message-ID<mailman.15.1425285828.13471.python-list@python.org>

[Multipart message — attachments visible in raw view] — view raw

I have been writing a c++ program that is supposed to call the python
function. The code is a snippet from python.org itself.
#include <Python.h>
#include <iostream>
#include <string>

int main()
{
    Py_SetProgramName("Learning");
    Py_Initialize();
    PyRun_SimpleString("import hashlib\nprint hashlib.md5('sarvagya
pant').hexdigest()");
    Py_Finalize();
    return 0;
}

I have used Visual Studio 2010. I have linked the include directories and
lib files correctly. It gets correctly built. Dependency walker shows the
file depends upon Python27.dll.
I have looked into the folder Dlls of python. It is not there. Also I have
checked both System and System32 folder. It is not present in there too.
Python version is 2.7. How can I get Python27.dll to deploy my app for
customers? Please help.

-- 
*sarvagya*

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web