We recently held a Learn Twisted event at the SF Twisted Meetup, and craig (one of the attendees) linked a fantastic writeup of how to set up Twisted on Windows using ActiveState Python. He kindly gave me permission to use it this blog post.
- Install Windows 32-bit version of ActiveState Python from http://www.activestate.com/activepython .
- Open a Windows Command Prompt, and run this command:
pypm install twisted
Verify that you have installed Twisted by running this command:
- The Windows 32-bit ActiveState Python version must be installed, not the Windows 64-bit ActiveState Python version. If you install the Windows 64-bit version,otherwise you will need to purchase a Business Edition license from ActiveState, in order to install some Python modules which are "locked".
Many other Python modules can be installed via pypm. See: http://code.activestate.com/pypm.
More documentation about pypm can be obtained by typing:
This step is completely optional, and not necessary for using Twisted for the class exercises.
If you ever want to build Python modules which have native code in C, you will probably need to have the Microsoft Visual C++ compiler installed. It is best to get a license and install the full version of Visual C++.
If you don't have the full version of Visual C++, you can try installing the free Visual C++ Express edition from Microsoft.