Easy setup of a Python 2.6 development environment on Windows
Easy steps for setting up a Python 2.6 development environment on Windows:
- Download the ActivePython 2.6 installer which includes everything to run most Python scripts and more. ActivePython is also available for other OS and Python versions. They also have a community site.
- For Windows users:
- Append the Python installation directory to the PYTHONPATH environmental variable. For example: D:\Python26;D:\Python26\Lib
- Check if your Python installation is included in the PATH environmental variable. For example: D:\Python26\Scripts;D:\Python26\
Optional external Python libraries
- Download the appropriate Libxml and Libxslt Python Bindings for Windows installer which adds, among other, XSLT parsing and transformation capability to Python. These bindings allow Python to interact with the Gnome libxml XML C parser and toolkit which is included with the bindings installer. Most Linux distributions already include the libraries.
Install a Python integrated development environment (IDE)
- You could write Python with a text editor (Notepad, NotePad++, TextPad, etc.) but a beefier IDE can make your life easier.
- Komodo Edit offers a medium weight IDE for Python and other programing languages and has a relative low learning curve.
- The heavy weight Eclipse IDE also offers Python modules such as PyDev. Configuring Eclipse can become a challenge.
Optional Python and Komodo Edit configutration
"analyzes Python source code looking for bugs and signs of poor
- Follow the tutorial at http://lab.usgin.org/groups/etl-debug-blog/debugging-python-scripts-pylint
- Add run python script command to Komodo Edit
- Follow this tutorial http://community.activestate.com/forum-topic/executing-python-code-within-komodo-edit
- Instead of %(python) %F use "%(python)" "%F" to deal with possible spaces in directory paths.