The following is a quick walkthrough on how to setup a Python working environment on a Windows machine.
This working environment is especially useful if you are a scientist, or working on a 64-bit Windows, because the python distribution mentioned below contains many important packages for scientists and for everyone precompiled for 64-bit python. Also, in this walktrhough you will setup and config IPython, which is great. And of course I already RTFMed (almost) everything for you.
- Install the Enthought Python Distribution (EPD), which is a Python 2.7 bundled with many python scientific packages such as Numpy, Scipy, IPython, etc. Academics get a free license.
- Setup IPython:
- Add these arguments to the shortcut running the IPython QT console:
--pylab=inline --editor="c:\python27\lib\idlelib\idle.pyw -e"
- Add imports you like to C:\Users\<USERNAME>\.ipython\profile_default\startup
- Add these arguments to the shortcut running the IPython QT console:
- Change the IDLE configuration file C:\Users\<USERNAME>\.idlerc\config-main.cfg
[Keys] default = 0 name = up-down [General] autosave = 1 editor-on-startup = 1
- If you don’t want a to install a revision control system, you’re done. If you do, go on.
- Install Mercurial by downloading and installing ToirtoiseHg.
- Setup TortoiseHg – in C:\Users\<USERNAME>\mercurial.ini:
# Generated by TortoiseHg settings dialog [ui] username = Full Name [web] push_ssl = True [extensions] fetch =
Advertisements