作者:容易 2013-03-23 14:25:28
1、安装zope.interface-4.0.5.zip,twisted依赖该模块
unzip zope.interface-4.0.5.zip
cd zope.interface-4.0.5
python setup.py build
python setup.py install
2、安装twisted
tar -jxvf Twisted-12.3.0.tar.bz2
cd Twisted-12.3.0
python setup.py build
python setup.py install
3、测试
[root@hadoop-slave Twisted-12.3.0]# python
Python 2.7.3 (default, Mar 22 2013, 10:56:19)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-52)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import twisted
>>> twisted.version
Version('twisted', 12, 3, 0)
>>>
4、源码安装 pyopenssl-0.12.tar.gz
备注0.13版本需要openssl高版本才支持
tar -zxvf pyOpenSSL-0.12.tar.gz
cd pyOpenSSL-0.12
>>>
详细信息,及源码下载可参考
http://twistedmatrix.com/trac/
One Response