By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,908 Members | 1,945 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,908 IT Pros & Developers. It's quick & easy.

Python-2.5.exe?

P: n/a
What Python is best for installing to a USB Drive? I've actually got
2.5 on a drive, but I forget which installation package I used. It
seems to me that it was an EXE file, but I cannot seem to find one of
those today.

Can the Python-2.5.msi installation files from python.org be installed
so as not to touch the registry, to make them portable?

--
Andrew Burton
tu*********@aol.com
http://utilitarian.us - A Guide to Esoteric Technology in Paragon City
http://jarodrussell.livejournal.com/ - Take a guess. ;)
Nov 15 '06 #1
Share this Question
Share on Google+
6 Replies


P: n/a
Andrew Burton wrote:
What Python is best for installing to a USB Drive? I've actually got
2.5 on a drive, but I forget which installation package I used. It
seems to me that it was an EXE file, but I cannot seem to find one of
those today.

Can the Python-2.5.msi installation files from python.org be installed
so as not to touch the registry, to make them portable?
python doesn't depend on the registry settings for normal use, so
you can simply install python as usual, copy python25.dll from
c:\windows\system32 to c:\python25, and then copy (or move) the
entire c:\python25 tree to your USB drive.

</F>

Nov 15 '06 #2

P: n/a
Andrew Burton wrote:
What Python is best for installing to a USB Drive? I've actually got
2.5 on a drive, but I forget which installation package I used.
Maybe this one ? http://www.voidspace.org.uk/python/movpy/
It
seems to me that it was an EXE file, but I cannot seem to find one of
those today.

Can the Python-2.5.msi installation files from python.org be installed
so as not to touch the registry, to make them portable?
It seems movpy can install Python2.5 on an USB Key.

A+

Laurent.

Nov 15 '06 #3

P: n/a
Fredrik Lundh wrote:
python doesn't depend on the registry settings for normal use, so
you can simply install python as usual, copy python25.dll from
c:\windows\system32 to c:\python25, and then copy (or move) the
entire c:\python25 tree to your USB drive.
Is it safe to assume that if you do this, Python first looks in
C:\Python25 for the dll file, before trying to find the non-existent (on
the USB drive) C:\Windows\System32?

Thanks.
Nov 15 '06 #4

P: n/a
John Salerno wrote:
>python doesn't depend on the registry settings for normal use, so
you can simply install python as usual, copy python25.dll from
c:\windows\system32 to c:\python25, and then copy (or move) the
entire c:\python25 tree to your USB drive.

Is it safe to assume that if you do this, Python first looks in
C:\Python25 for the dll file, before trying to find the non-existent (on
the USB drive) C:\Windows\System32?
Python looks for a DLL in the same directory as the EXE before it looks
anywhere else (this is standard Windows behaviour).

</F>

Nov 15 '06 #5

P: n/a
John Salerno schrieb:
Is it safe to assume that if you do this, Python first looks in
C:\Python25 for the dll file, before trying to find the non-existent (on
the USB drive) C:\Windows\System32?
python25.dll is found through mechanisms of the operating system, not
through code in Python. The operating system loads DLLs in the order
specified here:

http://msdn.microsoft.com/library/de...arch_order.asp

As you can see, the directory containing the application is searched first.

Regards,
Martin
Nov 15 '06 #6

P: n/a
Fredrik Lundh <fr*****@pythonware.comwrote:
Andrew Burton wrote:
What Python is best for installing to a USB Drive? I've actually got
2.5 on a drive, but I forget which installation package I used. It
seems to me that it was an EXE file, but I cannot seem to find one of
those today.

Can the Python-2.5.msi installation files from python.org be installed
so as not to touch the registry, to make them portable?

python doesn't depend on the registry settings for normal use, so
you can simply install python as usual, copy python25.dll from
c:\windows\system32 to c:\python25, and then copy (or move) the
entire c:\python25 tree to your USB drive.
As well as the above, I find a little .bat file like this to set some
paths and start python or your application is helpful, eg

@echo off
set DEMOHOME=%CD%
set PYTHONHOME=%DEMOHOME%\Python24
set PYTHONPATH=%PYTHONHOME%;%DEMOHOME%\Demo\Python
set PYTHON=%PYTHONHOME%\python.exe
set PYTHONW=%PYTHONHOME%\pythonw.exe
set PATH=%PYTHONHOME%;%PATH%
start "Demo" "%PYTHONW%" "demo.pyw"

--
Nick Craig-Wood <ni**@craig-wood.com-- http://www.craig-wood.com/nick
Nov 16 '06 #7

This discussion thread is closed

Replies have been disabled for this discussion.