“Python Foot” graphic by David Day.
How To Install Python On Windows XP
Instead of being all things to all users, this little how-to assumes the following:
- You are a Windows XP user who is curious about computer programming;
- You would like to install the Python computer language on your Windows XP machine, start the Python interpreter, and run the classic “Hello World!” program.
These instructions seem to work just fine for Windows Vista and Windows 7, too. Leave a note if you are able to confirm or deny. I use Linux and Mac OS X now, so I can’t test myself.
If you have questions, like “What is Python and why should I install it on my Windows XP computer?” go read Why Python on Windows XP? Come back if you want to install Python.
Back already? Never left? Okay, proceed.
A company called ActiveState makes a free, all-in-one Python distribution that has everything you need to run Python on Windows.
I don’t work for ActiveState. I am not an affiliate. There is no affiliate id or code in the link I provide to their site. I get no fee or percentage from them. I am not a computer expert, nor am I a computer scientist, just a Python fan.
Ready? Assuming you have cable or DSL, you are less than seven minutes away from having Python installed on your computer and typing your first command at the interpreter prompt. Go!
- Open another browser window (so you can keep reading this one) by pressing shift-and-click on the: Downloads page of ActiveState’s ActivePython distribution.
- Python works on Windows, Macs, and Linux so you’ll see a page offering distributions and versions for all. However, ActiveState can tell if you are using Windows, so you’ll see ActiveState’s recommendation for you in the two blue bars at the top of the list:
- Unless you know you have a newer 64-bit machine, play it safe and click on the “x86″ 32-bit version. You’ll also notice newer distributions of Python listed farther down the page. For now, use the version recommended by ActiveState in the blue bars. You can come back later and install a newer distribution once you become a Python convert, but most tutorials for new users are still written for older Python versions, so be conservative for now.
- When you click on the blue bar, Python should begin downloading.
- Make a note of where you download this file on your computer. It takes a few minutes to complete the download. Pass the time by watching the “Bring Out Your Dead” scene from The Holy Grail. Done? Okay, go find the ActivePython file on your computer.
- As of this writing, the file you downloaded is called “ActivePython-(your version number)-win32-x86.msi.” It’s about 45 megabytes, which is half the size of the last driver I installed for my Logitech Mouse.
- Double-click on the ActivePython file. (Windows may ask you to acknowledge that the software maker is unknown.)
- Up pops the ActiveState box and tells you it’s going to install ActivePython. Click Next.
- Up pops the Licensing Agreement. Check the Accept box. Click Next.
- Up pops a dialogue box allowing you to customize the installation. Don’t customize it. Click Next.
- See the button that says “Install”? Click it.
- You’re done, and the ActivePython User Guide appears.
- Now go to START | All Programs | ActiveState ActivePython (version number) (32-bit)
- The menu will break out into submenus. You want the one that says: “IDLE (Python GUI)” Click on it.
- You are now at the command prompt of the Python interpreter and ready to speak Parseltongue.
- Your cursor will be blinking just to the right of a prompt that looks like this: >>>
- Type the following command there and make sure that “Hello World!” is inside quotation marks:
>>> print “Hello World!” - Press Enter. You should see Hello World! appear in a different-colored font on the line below.
- If so, you’re done!
- If you get an error message that says: “SyntaxError: invalid syntax” then you either forgot the quotation marks or you installed Python version 3.0 or greater, which uses a different print command.1

“Hello World!” in Python
You are inside the Python shell window (a.k.a. interactive interpreter) of the Python IDE (Integrated Development Environment). Leave the Python interpreter open, ready, and waiting to take your commands. Go to one of the following tutorials, which will teach you how to use the Python interpreter to learn Python:
- Learning To Program (if you’re in a hurry to type more commands into the interpreter, go straight to the “Simple Sequences” section of Professor Gauld’s justifiably famous tutorial).
- A Beginner’s Python Tutorial. Steven Thurlow wrote this simple, excellent tutorial for the modding community of Firaxis’ Civilization. Useful to beginners with little or no programming knowledge.
- A Tutorial For Non-Programmers Looking To Get Started With Python, a Wikibook by Josh Cogliati and several other contributors.
- How To Think Like A Computer Scientist, by Jeffrey Elkner, Allen B. Downey and Chris Meyers.
Once you become comfortable playing with the Python Interpreter, go to the BeginnersGuide/NonProgrammers page of the Python.org site and select more tutorials. There are plenty of good ones. All free!
You can help by leaving a note below, especially if you use Windows Vista or Windows 7. I try to keep this page current, so if you encounter any difficulties, please post below and I’ll try to address them. Thanks, RD
Later, when you start learning to program and have more questions, visit the Python Users Group at Google Groups and search it. Chances are your question has already been asked and answered. Also, when you need help remembering commands, refer to this excellent Python Quick Reference sheet. And be sure to visit the beautiful, new, SEARCHABLE Python documentation page from the busy geeks at Python.Org.
If you prefer learning from a good Python book, try this one:
- Python Programming For The Absolute Beginner 3rd Edition, by Michael Dawson;
After you acquire basic knowledge in Python, you can move onto some other great books:
- The Python Cookbook, 2nd Ed., by Alex Martelli, Anna Ravenscroft and David Ascher, which provides “recipes” for common tasks you might like to accomplish using Python on your computer. For many people, this is the best way to learn code, by studying examples contained in programs that do useful work.
- Learning Python, 4th Ed., by Mark Lutz, commonly considered the most thorough introduction to the language for beginners, now out in a new 3rd edition that covers Python 2.5 and looks ahead to Python 3.0.
- Python: Essential Reference, 4th Ed., by David M. Beazley. This is the newest of the Python books and probably the best all-around Python book, but newbies may find it overly terse. Beazley wastes no words and has a tight, crisp writing style. If you are already familiar with basic programming concepts, but are new to Python, Beazley is your man.
In my most recent book, Rapture For The Geeks: When AI Outsmarts IQ, I argue that Python should be declared the Official Language of The Singularity. If you agree, cast your vote by leaving a comment below.
Rapture For The Geeks also includes an Emily Dickinson poem translated into the Python programming language by Python experts Alex Martelli and Anna Ravenscroft (see page 196 of Rapture).
Have fun!
Richard Dooling
- Some visitors install newer versions of Python from the ActiveState downloads page. That’s fine. You can install more than one version and use different versions as you please. However, starting with Python 3.0, many commands are new and different. For example, the print command for Python 3.0 and following goes like this: >>>print (“Hello World!”). For this How-To, I recommend that you play it safe and install the version recommended by ActiveState. Most of the tutorials for newbies are still written for older versions of Python. But, hey, it’s a living breathing language, so if you like it, install and learn the newest version! ↩




Pingback: Python en Windows: «¡Hola mundo!» en 7 minutos | Pybonacci
It also works on Windows 8, Thanks for all the great info! Keep up the great work! BTW I enjoyed the humor.
Pingback: Allison’s Space 12/27/2012 | Allison's Space
Hi,
Thank you for this guide. I would like to confirm that it works on Windows 7 64-bit as well. I started with version 3 but switched to 2.7 immediately.
Hi! Thank you for making it so nice and easyl.
It is working fine for me
Good Job!!! Thanks Richard..
It is solved : before coming here I had already tried to install Python, failed removed it, … and in my PATH I had two mentions of Python, and I guess the first one was the wrong one
I found that in the first page of the Active State installation
By the way when you start, IDLE GUI is NOT “behind” the start button you get it through the WINDOWS starting/All Programs …once found you can copy a shortcut anywhere
Thank you for this great tutorial! Ideal for newcomers: funny and straight forward. May I translate it to Spanish for our blog on Scientific Computing with Python?
Your tutorial is so great! Ideal for newcomers, funny and straight forward. May I translate it to Spanish for our blog on Scientific Computing with Python?
Thanks so much for your work!!
Hi! Thank you for this small and nice tutorial.
ActivePyhton & Python works fine so far on Windows 8 (evaluation copy).
I am always suspicious of new software. When a new web browser or antivirus scanner immediately wants internet connection, that makes sense. When a new programming language wants the same without warning, I am wondering what is going on. Perhaps this is reasonable, perhaps I should be looking at another version of Python.
Clear and simple.
Thankyou
Paul Jenkin
Well timed!!! Works like a charm
Thank You
Thank you so much, I got my “Hello World!” Now when will I get my RaspberryPi. I’m on xp by the way, and thanks again : )
I wish all instructions werte as clear as this.You have earned kudos from all
Completed download and install of ActivePython 2.7.2.5 on Windows 7 machine in minimum time and effort. Thanks
+1.
I at first installed python 3.2.2 and when I tried to print ” Hello World ” , it was not working, then I looked in this tutorial and found that the commands for ActivePython and python 3.2.2 is not the same. Then I installed ActivePython and the print hello world program works well now.
Thanks Sir.
I’ve a advice for my friends . If u want to learn Python easily without buying a book you can go to the following link :
http://www.learnpython.org
That was really quick and made so easy!!! thanks ! thanks a lot!
Hay man,
Thanks for this useful guide.
Just wanted to say that the download page now looks a bit different – at least to me! So you might want to change your article a bit so that the newbies are not confused.
Have fun
that is completely great : ) i really had to laugh at the point where you say i should watch the holy grail movie : P
very useful stuff. keep it up.
Hi
Hello World works on Python Shell.
How to run it in Explorer?
TQ
Win 7 64 bit – works perfectly.
start – programs – activestate activepython
away you go after that.
The instructions still work.
Thanks
Thanks a lot…..I’m loving it…
thanks for the fun and instructive read. I especially liked the monty python pun and link – it took more time to watch that than run the first program!
hello out there,
as absolute beginner to python i wanted to give it a try:
i’m using windows 7 enterprise 64-bit and installed ActivePython-2.7.1.4-win64-x64.msi as well as ActivePython-2.7.1.4-win32-x86.msi
trying to access start -> all programms -> ActiveState ActivePython 2.7 (64-bit) -> IDLE (Python GUI) or start -> all programms -> ActiveState ActivePython 2.7 (32-bit) -> IDLE (Python GUI) causes a flush (open and immediate close) of command window and nothing more.
little bit confused about that.
Running windows xp sp3, MS Security Essentials, and Windows Firewall. I installed ActivePython-2.7.1.4-win32-x86.
When I run the IDLE I get a message that says:
Socket Error: No connection could be made because the target machine actively refused it.
Does anyone know what I could do to resolve this issue?
Pingback: Using our APIs is Absurdly Easy ‹ Matt Briney – Web Strategist, Data Junkie, Web Application Developer, Traveler and Technology Enthusiast
Dear Sir,
(My website is not working yet. I have been just using it for web programming practice.)
Your instruction to install Python works well. I got the IDE interactive scheme set up. I would like to run a Python script in script mode. I don’t know how to do it. I have Windows XP. I put my script test.py in C:\Python27\script\. My script is
#!”/C:\Python27\python2.7.exe”
print “Hello World!”
Then, I tried to run it by typing test.py on the IDE window.It did not work. Please help. Thank you in advance. KYC
worked just fine on windows vista sp 2 64 bit. ty, ty, ty!
nice reading this especially for a biggener thanks!!!!!
Thanks a lot for your excellent work!
This page help me a lot in learning Python. Thx
Getting out of the shell and the stupid <<< by reconfiguring IDLE suddenly made sense of the whole programming thing. Thx.
RH
Installed Python 2.5.5.1 on win xp . Hello world worked How do i get for loops and if decisions to work.
Brian,
What do you mean, get them to “work”?
You mean like this?
>>> name = “Richard Dooling”
>>> if name:
… print name
… (press return twice)
Richard Dooling
>>> for letters in name:
… print letters,
… (press return twice)
R i c h a r d D o o l i n g
>>>
After a conditional or a for loop, you have to press return and then indent four spaces. Is that what’s causing you problems?
Good luck.
RD
Try this tutorial if the others didn’t do it for you:
http://www.swaroopch.com/notes/Python_en:Table_of_Contents
Thank the extra return did it. I havwe python 2.5 working on windows 7.0 as far as loops and hello world i will keep you up to date aggain thank you
Great guide for beginners! Thanks so mush~
very gooooood guide for python beginners, let me know how to start with python and provide lot of excellent resource for deep learning.
writting instruction should be like this, step by step and funny
thank you
Exactly 4 minutes and 57 seconds after reading the link to the download page before Hello world in blue popped up on my screen. What a pleasure such a smooth written and didactically correct manual.
oh,you need update document print => print(“Hello World”)
Thanks! works smoothly with ActivePython 3.1.2.3 (on XP)
Only difference, new print statement:
print(‘hello world’);
Not doing so well here. Loaded 2.6 but no Pythonwin Editor. Now loaded 3.1 and that does have win ed.
Error message shown:
PythonWin 3.1.2 (r312:79147, Mar 22 2010, 12:20:29) [MSC v.1500 32 bit (Intel)] on win32.
Portions Copyright 1994-2008 Mark Hammond – see ‘Help/About PythonWin’ for further copyright information.
>>> print “hello world”
Traceback ( File “”, line 1
print “hello world”
^
SyntaxError: invalid syntax
>>>
The machine is running XP Pro. Any pointers would be very much appreciated.
Neil, Sorry so long in answering, see above: You must have installed Python 3.0 or later. The print command for Python 3.0 and up is print (“Hello World!”).
Sorry for confusion.
RD
This website is good for learning python programmes
YAY it’s working!you rule man! ;D
Hey all, I downloaded phython on 7 got hello world to work.. No problem..!
Thanks for the very helpful info. you saved my day.
gracias, busque por dias algo asi de rapido, y sin complicaciones,
I’m having the same problem as M.
What version of windows? Apologies for long delay. Traveling. RD
Hi. i seem to be having trouble. whenever i try to run python it says run but then it says “This installation package could not be opened. Contact the application vendor to verify that this is a valid Windows Installer package.”
Pls help
Sorry. I have been traveling. What version of Windows?
windows xp
i have installed python but unable to run as it always throws error message i.e. raceback (most recent call last):
File “”, line 1, in
(-c)
NameError: name ‘c’ is not define
i tried working in pylot 1.26 and i have also installed python 2.5 + and other softwares given on site
I am in Vista Enterprise and faced absolutely no problems.
Thankz alot sir…..
Dear Stephen:
Google says:
http://tinyurl.com/5u43y3
First hit. Let us know if it works.
Thanks.
Rick
Richard,
You wrote: “Any Vista users? You can help by leaving a note about any differences you encounter while following these instructions on Vista.”
I’m using Vista Home Premium SP1.
I tried you approach to instillation (activePython-2.6.2.2 win32-x86) along with others (python 262 [compiled HTML Help file] and python-2.6.2.2 win32-x86 [windows installer package]) and continue to get the following error message.
Windows Installer
The Windows Installer Service could not be accessed.
This can occur if the Windows Installer is not correctly
installed. Contact your support personnel for assistance.
Any thoughts on how to fix this issue?
thanx a bunch for the guide
there’s one other dialog box for vista users to plow through, as always. If you miss this box for whatever reason, you have to re-install the program.
and your book is awesome
Excellent Job! Thank you for the guide through
thanx an infinity……..!!
It took me 8 minutes actually because I had to watch this while installing. http://bit.ly/19tYVd
Thank you so much, very easy to follow and step by step instructions….too good.
hello world!
thanks
Python?????
its too bad…….
thank you sooooooooooooooooooooooooooooo much Richard
thanx man thats awesome … i would never have done it that fast
Nice, Thanks for the intro
Nice and updated installation guide, thanks
Thanks!! This worked great – and was fun to read. I was on Vista and except for one additional message, it was perfect. Note: That additional message was when I double clicked on the msi, I had to acknowledge something to the effect that the publisher of this software was unknown.
Thanks again,
R
Richard,
This is very motivating. Thanks for making it look so simple
Good tutorial!
Also, version 2.6 of python is out. (The version I downloaded).
And further more, you are awesome. You should try get a holiday named after you.
wow. That was a fair amount of links in one small paragraph. You wouldn’t happen to edit wikipedia, would you?
The only reason I have Microsoft Word on my computer is because my mum wanted to look at some files that were for specifically Microsoft Word. (I’m 16, if you were wondering about me living with my mum). Otherwise I would have never bothered with it. (I use it at school, I don’t really like it much. It’s a pity that they don’t offer anything else).
Thanks for the info, I will take it under consideration.
Dear Flesh:
Some might say that you can use Microsoft Word as a text editor, but you are better off using Notepad or WordPad. I haven’t used Windows for years (I’m on Linux and Mac OS X). There are literally hundreds of excellent free text editors to choose from, no matter what your operating system. I prefer Vim myself, but it takes a bit of learning to operate, like any powerful tool. Learn more about text editors at Wikipedia.
Hello, world!
I just downloaded Python! It took me about 6 hours to download. (I live out in the middle of nowhere and the phone lines can’t handle broadband out here, so I’m stuck on slow dial up).
To the guy above who is using Mozilla, did you left click or right click? I had a problem like that when I tried to download something ages ago. It’s best just to left click on it.
Is Microsoft Word a good text editor to write python code in? (I also have Notepad and Wordpad if either of those are better to use)
Oh yeah, and thanks for all the help!
~Flesh
I now think I know why python didn’t install.
I used Mozilla and the installation box didn’t appear. Instead Mozilla download box appeared.
It didn’t install… Probably because I was installing two things at once.
Whoops, didn’t say thank you. Thank you, Richard Dooling!
Didn’t time it. I used this one because the newest one was too hard
. Hooray for older versions of stuff!
Audra,
I think you are possibly confusing two or maybe three things: (1) running a file that contains Python code; (2) editing such a file; and (3) interacting with the Python interpreter. When you say that you have “downloaded certain files that require python editor,” what does this mean? If these files are Python scripts or modules, then you would run them using Python, but you would edit them with any text editor.
I think you should continue with the tutorials I linked to until you grok the differences, then set up your particular environment to run the files you downloaded. Pay particular attention to editing, saving, and running your OWN simple beginning script using one of the tutorials, and then it will become clear how to run some other Python program that you downloaded.
I can’t really provide support here, but once you have a little bit more knowledge you can post to:
http://groups.google.com/group/comp.lang.python
And someone will help you.
Thanks,
RD
Thank you so much for making python understandable. I had downloaded it (the zip version) but after unzipping, was at a standstill. Now, that you have successfully talked me through opening up Python Interpreter, how the heck do I use it? I happen to have some certain downloaded files which require python editor–so now how do I get the files to the interpreter? If I just click on them, I get a message they require python interpreter–duh! Help–for the semi (or mostly) computer illiterate.
This is perfect for people like me who don’t actually want to use Python but need it installed to run Blender’s python scripts. Just an FYI for anyone else installing Python for Blender…you must use the older version of Python that Blender recommends, Blender won’t recognize newer versions of Python. Happy sculpting!
I am new to the Python and i think the information given by you will help me to learn more about Python.
thanks!!!
Pingback: Richard Dooling » Blog Archive » Why Python on Windows XP?
Thank you Richard I’ll go and poke around over there.
Sammy
Sammysnake:
A perfect question for the Python Google Group:
http://groups.google.com/group/comp.lang.python
Usual answer is neither. Leave the present Python installation in place. If you want or need a new version, just install it separately. You can summon either version as needed. Your system may use or require the old one just to function, so don’t tamper with it.
RD
I have a HP computer that came with python installed on it and it is a very old version. I’m just now looking into messing around with python and was wondering if I need to uninstall what is on my system or just install over the top of it the newer version. Any suggestions?
i WOULD LIKE TO BUY dvd BUT THE LINK DO NOT WORK
Kyle,
Your question is a perfect one for the comp.lang.python google group. You’ll get a wide variety of opinions and responses, and they may also ask for more specifics from you about what kind of programs, etc. But that would be my first choice for a broad question like yours:
http://groups.google.com/group/comp.lang.python/topics
Good luck,
Awesome site Richard!
I have been running searches all over the net looking for python tutorials that focus more on scripting programs. Most of what i found sticks to the “print” and variable tutorial basis. Do you know of a site that a person can start learning creating actual programs?
Kind Regards,
Kyle
This worked great for me (WXP+SP2) and can use LastFMProxy not just in Linux
http://www.last.fm/group/LastFMProxy
Thanks…..
Thanks for your site. The download process was both educational and functional. Much appreciated.
I have installed Python 2.3.5 on my windows XP computer and when I open IDLE (Python GUI) nothing happens. What should I do
Hi ! its a great tutorial on python .. could you please let me know what is the basic advantage of using python over java. is it fast or more convinient to code .. we have some daily jobs which are written in pyhton but the thing is we have lot of people having java skills and no one with python . so is there anything special in python for which we should ask java developer to learn and code in python
Thank you for this. You have saved me a lot of trouble.
Well, here I go…
This helped me a lot. Thank you.
I hypothesized the following:
Download procedures are very simple when described with patience, care and concern for their users.
I believe you’ve proved it.
Thanks – Randy
Just wanted to say thank u for your help in my quest to be free.
Thanks.Reading your tutorial I setup pyton successfully.I was looking for tutorials explaining how setup this program,and I didn’t find anyone easy.I though I never succed,but I did.Now I’m following the tutorial recomended by you,alan gauld’s.
i like this site…thank you…
Jack,
I use Linux and Mac OS X, but I’ll check on a Windows machine tomorrow. You can use the interpreter inside PythonWin just fine. Or open a command prompt, like C:\> and type “python” and press return. That too should give you a Python interpreter.
As I say, I’ll check myself tomorrow on a Windows machine.
RD
Hi Rich,just ran the pythonwin program and it seems i can’t find the related python idle program on my pc, it only shows pythonwin, python interactive shell,python documentation and and python reinstallation(modify,etc) on my startup.Is there a way to fix this or did i download the wrong version?
Thanks a million for this easy step-by-step guide. The options on the main download page were daunting for this novice.
Thank you very much
.
There is lots of good information out there. However, it is very rare to find something as readable, accurate, and time-efficient as this guide. Sure wish I had found this site the first time I went paddling in the python pool.
Looking for a tagline for your site? How about, “Learning should be a joy, not a task.”
This actually works. Thanks!
Awesome help here, THANKS MATEY.
I’d write you a letter and post it but I think that would be a bit weird. but I like sending letters.
Thanks for writing this though. GOOD JOB, SIR.
Awesome! I am teaching my 11 year old son to program and your 7 minutes to Hello World made getting python up and running super simple. He just let me back on the PC after about 4 hours of raw_input’s and print commands… Thanks!
I’m having some problems once I’ve installed the ActivePython. I can access the shell quite fine, but opening the PythonWin Editor gives me this error message and doesn’t open anything up/can’t start a new file/can’t do anything:
File “C:\Python25\Lib\site-packages\pythonwin\pywin\framework\intpyapp.py”, line 171, in InitInstance
import interact
File “C:\Python25\Lib\site-packages\pythonwin\pywin\framework\interact.py”, line 8, in
import code
: (‘invalid syntax’, (‘code.py’, 9, 25, ‘if__name__ == “__main__”: web.run(urls, globals())\n’))
Any ideas?
hello I been learning python by a month now, am reading the book “python programming on win32″ by mark hammond, but this book is very old a some of the examples are easy to understand and others not so easy, most of the problem are in the parts of COM, using de excel, word and visual basic stuff, a have being writing the code of the book and it even donwload the examples, but we i run then, most of then nothing hapends even wen in the book saids the oposite , if some could help me, i have python 2.5 on windows xp, and i beginning to wonder if this is the problem
Thanks for your help.
It’s agreat job
Thanks so much!!! I really wanted to start python… and just been really lazy. But this was really great !!! Thanks again
Why are you trying to get people to get Python from a different site than the original python site? Python kicks some butt, and has a lot of functions, and I would rather be safe using it from the creator’s site, because if NASA can trust it, so can I!
Besides “Hello World!” isn’t hard at all:
code: print “Hello World!”
Thanks a lot
Thanks!!
Professor Gauld left a note on comp.lang.python (google group) saying he was having hosting problems and had copied everything to a temporary server.
Try this:
http://uk.geocities.com/alan.gauld@btinternet.com/
rd
This really helped. I was also referring to Professor Gauld’s website about a month ago and it was great, but now I can’t access the website anymore. Is is just my computer or has the website gone??
Thanks a lot. It really helped!
Olivia,
Sure ActiveState has the 2.5 version. I think you’ll like the GUI better.
But now that I’m here, I see that ActiveState changed their menus and such, so I better go reconfigure!
RD
This really helped a lot. The problem is that I’ve installed the recent version of Python on the python.org distro and I’ve been having problems with the interpreter. I would uninstall 2.5, but I know that they’ve made changes and added some new features. So I was wondering if Active State has version 2.5 that I could install. I’m also not quite sure if it’s “worth” uninstalling. Does it really matter what version I use?
Dear Petunia,
I couldn’t figure out how to use the Windows command prompt either. That’s why I made the page! Glad it helped you.
Microsoft hides the command prompt, because if their customers learn to use a shell, and learn languages like Python, then they’ll move to Linux.
Use Python and a good cross-platform text editor on Windows until you’re thoroughly comfortable. Then take an old computer and load Linux on it. I recommend either Ubuntu or Debian, but there are many other distributions.
Enjoy.
RD
Thanks so much from a sort of Omega Geek (yeah, that far from Alpha!). I tried downloading from the python site, read tons of instructions for using Python from LINUX-like and UNIX-like operating systems but couldn’t figure out how to use the Windows command prompt or path settings to get anything out of it at all. The ActiveState download, coupled with your instructions, is just great!!
Hope to get far enough to be able to check out some of your “advanced” links!
- Petunia
Several questions here from programmers who are refugees from other programming languages. For you, the official Python Tutorial is probably your best bet:
http://docs.python.org/tut/tut.html
Also, consult the documentation section at http://python.org
Good luck,
RD
I have found the solution. The python version ‘AMD64′ is made for 64-bit-systems. I have heard that some functions in this versions don’t work.
Every windows processor should be able to work with the python version for x86 processors (also just called ‘windows’).
Thank you anyway.
Why there is a special download for AMD64 Processors on http://www.python.org available? Do I need this download if I have a “AMD Athlon ™ 64 X2 Dual Core Processor” ?
Thanks for being genrous enough explain all this, I tried to install Python myself and got into a terrible mess!
hello i am new with python. i had just read it on how to become a hacker. i am interested to know about it. i have learned my first language c++ then java. now i try for python.
i am downloading now then look for tutorial here. can you guide me?
are there any tutorial for users who are profecient programmers but just not in python?
Geoffrey,
I don’t know Zope. I just recently purchased the Django book, though, which looks very good. Also see http://www.djangoproject.com.
As for the Chun Core Python book, I don’t know it. I’ve heard good things about it. Of the ones I’ve seen lately, I guess I would go with Python: Essential Reference, 3rd Ed., by David M. Beazley. This is the newest of the Python books and probably the best all-around Python book for programmers coming from another language. Newbs may find it overly terse and should try some of the other recommended books. If you are already familiar with basic programming, Beazley is your man.
Very nice installation – complements to the chef!
After Python, I’ll try to modify the Zope cookery book to what I want! – do you have any suggestions for an idiot’s start to Zope?)
Chun’s Core Python Programming seems to review well on Amazon – any experience or knowledge of it?
First step into the programming world. Lets see how this goes.
downloaded and used python for the first time yesterday and couldent have done it without you!!! it is great fun and shockingly easy once you know how thanks
fodderz
This was the best installation instruction I’ve ever come across. Thanks a lot!!!!
AM,
Are you running on an encrypted drive?
See http://tinyurl.com/2eysjm
rd
I have windows XP…trying to download Python getting error 2755.
Thankyou
wow took longer to read the tutorial than to install.. PYTHON HERE I COME!!! =D
Hi,
Just wanted to say that I’m starting out with this language. I’ve no prior experience save some dabble here and there in HTML, which I doubt will help me very much, but I’m willing to learn. Thank you for this, because I will follow the tutorial word for word, until I can get on my feet :}
-SRS
Dear Ariel:
ActivePython has very good customer service, so ask them there.
Do you by any chance have your disk partitioned into logical drives, like C,D,E etc.? If so, and you downloaded to one of those logical drives, then try copying the installation file to C:\ – the root of your C
drive and double click on it there.
Hope this helps.
rd
sir rick,
i just cant open the installer. i have an error that says ” installation package could not be opened. contact the application vendor to verify that this is a valid windows installer package. is there something wrong with my os?
Chris,
Thanks for pointing that out. It must be new terminology in the latest Activestate distro. Yes, they are the same.
Send any other edits or suggestions as you go. I appreciate it.
rd
Not sure if this is a dumb question, but…
The instruction above says to click on the “Pythonwin IDE” submenu. Instead, I see a submenu entitled “PythonWin Editor.” Are they one in the same?
Nicely done! the parseltongue hyperlink especially ;-p a very helpful tutorial dude… thanks a ton!
very good!
dude it was awesome tutorial.
thanks.
i want to contact you
Rami,
This is a perfect question for the comp.lang.python group. Very
active. I’m sure you would have many responses quickly. However I
predict you will not get too much sympathy for saying “I don’t want to
waste time” as most programmers will tell you to try them both.
That said. I think your question comes up a lot. If you go to
comp.lang.python and search on python and php you’ll see what I mean
http://groups.google.com/group/comp.lang.python/topics
Good luck
i loved this tutorial, great stuff, i have a question if you can answer it i’d be glad just send me an e-mail with the answer “i have some experience in PHP and MySQL, and i am in the process of creating my own Content Management System, but after reading about Python and seeing professional programmers recommend Python i loved to give it a try, i would like to know if Python is the right choice for a begginer like me or shall i complete with PHP? because i don’t want to waste my time, thank you”
That was excellent Richard. Thanks very much for making it so simple to follow and easily get through it.
I’m sure a lot of questions will arise, but for now I’m good..
JC
Grant,
I think you can get almost the full effect by just installing Mark Hammond’s Win32 extensions together with your recent Python installation.
Here is the site.
http://starship.python.net/crew/mhammond/win32/
The ActivePython distro just installs BOTH Python and the win32 extensions together in a nice package, but I don’t think it’s worth uninstalling your other installation unless you are having trouble. I believe the ActiveState Python distro also sets up your environment, paths, etc. But you can also do this yourself.
I use both ActiveState on one machine and the Python.org distro on others. But then I’ve moved to Linux so I can’t say for sure about the Windows thing.
Try just installing the win32 extensions. The gui IDE is very nice compared to the dullish IDLE one.
Good luck
rd
RD
I did not find your info until I had downloaded Python 2.5.1 from http://www.python.org/ which had IDLE (Python GUI) with it.
I would like to try the ActiveState PythonWin IDE.
1. Do I have to Uninstall Python and download it again from ActiveState to get the IDE program?
2. If I download ActiveState’s Python, am I going to get the latest version, 2.5.1?
3. Can I get the ActiveState PythonWin IDE easily and try it? How?
Thanks for your help.
Grant R.
Matt,
You don’t need the ActiveState distro, too. You just need the
extensions.
The ActiveState version is stuck at 2.43 for the moment. If you’ve got 2.5 it’s the most current. If you’d like the Windows Extensions, you can download them here:
http://sourceforge.net/projects/pywin32/
Some people prefer the PythonWin IDE to IDLE (which comes with the standard install).
You can try both.
But don’t install the old ActiveState distro on top of 2.5.
Sorry for the confusion.
rd
I’m new to python and just loaded up the 2.5 version from python.org. I didn’t even see something else to download (the win32 stuff you’re talking about). Do I really need it? What is it for?
I know those are probably the types of question that are to user specific or to broad to answer in a few sentences, but if you can I’d like to know. I guess I’ll just go get the ActivePython verson also.
Thanks,
Matt
Dear Matt:
Sorry. Not familiar with Webmin. Looks a bit dodgy for Windows. Just scanning the instructions, it looks like you need ActiveState Perl installed, along with a module and such. Seems like primarily a Linux tool? Let us know if you get it working and if it’s worth the install.
As for Python, be advised that the ActiveState distribution will upgrade to Python 2.5 soon. It’s basically just an uninstall and reinstall using the 2.5 distro. You can download 2.5 from Python.org now, but then you must install the win32 stuff separately, blah blah. Not pain free, in other words.
Just stay with 2.4 for now, especially if you’re just getting your feet wet.
I’ll post the ActiveState 2.5 instructions as soon as they come out with it.
Thanks,
rd
Pain free instructions, thank you very muchly. Do you know of a similar resource for how to install Webmin on Windows? Webmin’s own instructions assume too much knowledge and I’m no sysadmin.
I like so much your style,
thanks for the tutorial.
See ya!
This was my first step to hacking and programming, thank you!
Great tutorial!!
Thanks!
Have heard great things about Eclipse (although I’m a Vim user myself). I have not tried Eclipse yet.
The Eclipse home page is at:
http://www.eclipse.org/
The PyDev home page is at:
http://pydev.sourceforge.net/index.html
Why not hint at eclipse with pydev as a python ide? eclipse is also cool to write java, php, cmfl, and to some extent even fortran or c. it’s free and i guess you can set it up in 7 minutes with pydev, assuming you have a fast connection to load pydev from the update site.
>> pythonwin != IDLE . idle is the
>> funny little (python/tk programmed)
>> python “ide†that comes with the official download.
Fixed. Whatever it is it’s Eastern Bloc ugly compared to the Pythonwin IDE
Rick
Oh yeah, and for a book i suggest “Learning Python” by Mark Lutz, David Ascher . I learned to love python with this book, its very good
pythonwin != IDLE . idle is the funny little (python/tk programmed) python “ide” that comes with the official download.
But you are right to use Activestates distribution, because the IDE is way better than idle and they include the win32 extension and the rest is the same.
If you want to seriously lern some python, check out http://www.diveintopython.org , the de-facto standart book on python on the web.
Scratt,
What am I using to get bullets? I’ll check the css tomorrow and see if I can find it. If you are are a WordPress user, you can poke through the Wuhan download. That’s what I made it from. I did a lot of work on the sidebar and header, but the post code should be just the way you find it in the Wuhan theme download. See if you can find what you need there.
http://wuhan.authenticasian.com/
Rick
Great. Thanks for that.
By the way.. What are you using in WordPress to get the bullet points in the post? I have been looking for something like that for a while.
Thanks.
Dude, that was awesome. And only took 3 minutes.
I timed it at two minutes (and a bit) dead!
Excellent stuff!
Brendan,
Does the Python.org version include the Mark Hammond Win32 extensions? Don’t they have to be installed separately? I thought this came up once on the Python boards, and people told me they were two separate downloads.
The idea here is to get Python downloaded and installed for the user who is perhaps intimidated by a big shaggy page of versions, bug fixes, and multiple downloads.
Rick
1. Why wouldn’t you just download the official Python windows installer http://www.python.org/download/ ? It seems a little bit pointless to use Activestate’s repackaged version when you could get the official version from the creators in a Windows-friendly format.
2. Another good reference for Python beginners is located at: http://www.ibiblio.org/obp/thinkCSpy/