Install Python 2.6 without using installer on Win32
Posted
by prosseek
on Stack Overflow
See other posts from Stack Overflow
or by prosseek
Published on 2010-04-20T21:16:34Z
Indexed on
2010/04/20
21:23 UTC
Read the original article
Hit count: 208
I need to run a python script on a machine that doesn't have python installed. What I did was as follows.
- Copy python.exe, python26.dll, msvcr90.dll and Microsoft.VC90.CRT.manifest
- zip all the directory in LIBs directory as the python26.zip
- copy all the necessary dll/pyd file inside the DLL directory.
It seems to work, but when I change the python26.zip to the other name such as pythonlib.zip. It cannot find the python library anymore.
- Q1 : What's the magic behind the python26.zip name? The python automatically finds a library inside a python26.zip but not with different name?
- Q2 : If I have python26.zip at the same directory where python.exe/python26.dll is, I don't need to add path sys.path.append(THE PATH TO python26.zip). Is it correct?
© Stack Overflow or respective owner