作者:容易   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

python setup.py  build
python setup.py install
5、测试
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 OpenSSL
>>> import twisted.internet.ssl

>>>

详细信息,及源码下载可参考

http://twistedmatrix.com/trac/

One Response


    还没有评论!
1  

Leave your comment

请留下您的姓名(*)

请输入正确的邮箱地址(*)

请输入你的评论(*)


感谢开源 © 2016. All rights reserved.&3Q Open Source&^_^赣ICP备15012863号-1^_^
乐于分享共同进步 KreativeThemes