---
title: "Linux 下安装 Twisted"
author: "cai555"
date: "2009-04-20T14:41:54Z"
tags: ["Linux", "Python"]
slug: "linux-twisted"
draft: false
lastmod: "2009-04-20T14:43:18Z"
id: 371091
url: "https://cai555.iteye.com/blog/371091"
---

第一步：安装python 2.6.2:

 

            解压Python-2.6.2.tar.bz2到/opt/

            进入/opt/Python-2.6.2

            将文件“configure”改为可执行

            type "./configure" in the current directory and when it finishes, type "make".  This creates an executable "./python"; to install in /usr/local, first do "su root" and then "make install"。

            执行"./configure " =&gt; 执行“make ”=&gt; 执行"make install "

 

第二步，安装twisted:

 

             解压Twisted-8.2.0.tar.bz2到/opt/

             在文件夹Twisted-8.2.0/下执行

 

                python setup.py install

 

第三步，安装zope.interface-3.3.0:

 

            下载地址[http://www.zope.org/Products/ZopeInterface](http://www.zope.org/Products/ZopeInterface)

             解压zope.interface-3.3.0.tar.gz到/opt/

             进入/opt/zope.interface-3.3.0

             执行：python setup.py install