Sunday, December 03, 2006

Python Environment for Windows

Dan McKinley : Setting up a Python Development Environment for the Ignorant Windows Programmer:

"This assumes very little knowledge and hopefully this will be helpful to somebody. You will need:
Python -
Emacs -

Yes, tragically, you will have to learn emacs if you have managed to resist it up to this point. Luckily, it turns out to be worth the trouble."

Its funny, but I've been doing the almost exact same thing in terms of setting up a Python environment for Windows. Though I don't see anything tragic about having to learn how to use Emacs, I think emacs rocks! In any case, you can also download XEmacs from here:


I use ActiveStates activepython:


If you are using XEmacs instead of Emacs, in your .emacs file replace the following line:
(global-font-lock-mode t)
(require 'font-lock)

I like using the command line a lot. Activestate adds python to the command line when you install. Adding xemacs directory to the PATH environment variable helps to launch emacs from the command line.

I too really do like the Consolas font in Windows. If for some reason you don't have it installed, you can download it from here:

Consolas font pack

So their you go, a slightly alternate path to take if you are an "Ignorant Windows Programmer". :)