Chapter 1. Getting Started
Before you can start developing applications using Twisted, you’ll need to download and install Twisted and its dependencies. This chapter walks you through the installation process on various operating systems. It also shows you how to add the Twisted utilities to your path, familiarize yourself with the Twisted documentation, and get answers to your questions from the Twisted community.
These instructions assume that you are familiar with Python and, in the case of source installations, comfortable navigating and installing packages from the command line.
Twisted requires Python 2.6 or 2.7. Support for Python 3.0 is in progress at the time of this writing.
Installing Twisted
First things first: you need to get Twisted installed on your computer. Downloads and instructions for installing Twisted on various operating systems can be found on the Twisted home page, with additional instructions and links to older releases at this Twisted page. To enable additional functionality in Twisted, you’ll have to install a couple of optional packages as well.
You can find everything you need on the Twisted website, but if you’d like you can also browse this page on PyPI for the source, Windows installers, and download statistics.
Installation on Linux
All of the popular Linux distributions maintain a python-twisted package as well as packaged versions of Twisted’s dependencies. To install Twisted on a dpkg-based system, run:
apt-get install python-twisted
On an rpm-based ...