473,408 Members | 1,786 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

windows/python compatability

i'm a newbie to python. i'm learning to program and wanted to know how
to tell which version of windows my finished python program will work
on. thank you.
Jul 18 '05 #1
4 1244
kluge wrote:
i'm a newbie to python. i'm learning to program and wanted to know how
to tell which version of windows my finished python program will work
on. thank you.


That will depend somewhat on what features it uses... but for the
most part *any* currently available version of Windows will run
it just fine, as well as probably any version of Windows 98 since
the second edition was released, and possibly even the first one.

The only real requirement is that Python will have to be installed
on whatever machine tries to run it. If that's a problem, you
can also investigate "py2exe" and use it plus a nice free installer
program (like InnoSetup) to build an installer that anyone could
use to install your program, without having to deal with a Python
download and such.

-Peter
Jul 18 '05 #2
kluge wrote:
i'm a newbie to python. i'm learning to program and wanted to know how
to tell which version of windows my finished python program will work
on. thank you.


It should work an any 32 bit Windows (Windows 95 onwards) assuming you
are not using any libraries specific to later versions (very unlikely
since you are a newbie :-) ). It probably will work on most other
platforms (Unix, Linux etc) as well if you want it to. Good Luck.
Jul 18 '05 #3
With Py2Exe, though, I wouldn't recommend using mxDateTime package in the
Python program itself.
A little tricky to get py2exe to actually create the executable with this
package.

"Peter Hansen" <pe***@engcorp.com> wrote in message
news:B7********************@powergate.ca...
kluge wrote:
i'm a newbie to python. i'm learning to program and wanted to know how
to tell which version of windows my finished python program will work
on. thank you.


That will depend somewhat on what features it uses... but for the
most part *any* currently available version of Windows will run
it just fine, as well as probably any version of Windows 98 since
the second edition was released, and possibly even the first one.

The only real requirement is that Python will have to be installed
on whatever machine tries to run it. If that's a problem, you
can also investigate "py2exe" and use it plus a nice free installer
program (like InnoSetup) to build an installer that anyone could
use to install your program, without having to deal with a Python
download and such.

-Peter

Jul 18 '05 #4

"kluge" <eu*************@yahoo.com> wrote in message
news:1a**************************@posting.google.c om...
i'm a newbie to python. i'm learning to program and wanted to know how
to tell which version of windows my finished python program will work


There is some system information in the "os" module.

i.e. os.environ contains what is there and os.getenv() reads a single value.

os.getenv('OS') f.ex. gets the name of the operating system; my box says
'Windows_NT' although it is really Win2k.

If you stick to using Python functions *only* for everything
"system-related" such as manipulating file paths (os.path may help), time
e.t.c. then your program will probably run on anything Python runs on.
Jul 18 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

49
by: Ville Vainio | last post by:
I don't know if you have seen this before, but here goes: http://text.userlinux.com/white_paper.html There is a jab at Python, though, mentioning that Ruby is more "refined". -- Ville...
7
by: Christian Tismer | last post by:
New Win32 binaries have been uploaded to the Stackless website. Some compatibility issues with certain constructors have been solved. Please let me know of any problems. more to come soon -...
42
by: j_mckitrick | last post by:
Yes, it's a silly question, but given how far we have come, why is it that a natural looking, easy to read, incredibly powerful language has appeared only recently, from a tech standpoint? I...
68
by: Lad | last post by:
Is anyone capable of providing Python advantages over PHP if there are any? Cheers, L.
17
by: Jan Danielsson | last post by:
Hello all, I recently started using Python, and I must say I like it. Both the language and libraries available for it. Background: I have written an application which I use to keep track of...
3
by: Chris Paul | last post by:
I'm having trouble with PHP & PostgreSQL/OpenLDAP/Apache on Windows. I've set this up countless times on BSD (piece of cake) but I'm trying to do this on Windows now so that my developer can work...
8
by: Johs32 | last post by:
I would like to write some C code in winXP. I was told that I could use visual c++ but does that not only work for C++? What compiler is the best for C and C++ in windows? Johs
53
by: noahmd | last post by:
Okay, once-upon-a-time I tried to start programming by learning C. At the time I was younger and didn't really understand all that C had to offer. I eventually moved over to Microsoft's Visual...
0
by: Kurt B. Kaiser | last post by:
Patch / Bug Summary ___________________ Patches : 413 open ( -7) / 3521 closed (+11) / 3934 total ( +4) Bugs : 946 open ( +2) / 6400 closed ( +9) / 7346 total (+11) RFE : 248 open...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.