《centos5.5下安装twisted报错及解决方法》由会员分享,可在线阅读,更多相关《centos5.5下安装twisted报错及解决方法(2页珍藏版)》请在金锄头文库上搜索。
1、Centos5.5下安装twisted报错及解决方法1.使用python安装twisted时的报错信息rootlocalhost Twisted-12.1.0# python setup.py installTraceback (most recent call last):File setup.py, line 102, in ? main(sys.argv1:)File setup.py, line 45, in main from twisted import copyrightFile ./twisted/_init_.py, line 14, in ? raise RuntimeEr
2、ror(Twisted requires Python 2.5 or later.)RuntimeError: Twisted requires Python 2.5 or later.在安装Twsited之前需要首先安装Twsisted的两个依赖库pyOpenSSL和pycrypto。1、pyOpenSSL安装# wgethttp:/ tar xvzf pyOpenSSL-0.9.tar.gz# cd pyOpenSSL-0.9# python setup.py build# python setup.py install2、pycrypto2.1安装# wgethttp:/ tar xvz
3、f pycrypto-2.1.0b1.tar.gz# cd pycrypto-2.1.0b1# python setup.py build# python setup.py install3、Twisted安装# wgethttp:/tmrc.mit.edu/mirror/twisted/Twisted/9.0/Twisted-9.0.0.tar.bz2# tar xvjf Twisted-9.0.0.tar.bz2# cd Twisted-9.0.0# python setup.py build# python setup.py install2在执行python setup.py build 的时候报错.package init file google/protobuf/compiler/_init_.py not found说明之前的protobuf没装好 要重新编译安装3.使用easy_install twisted安装是经常找不到网址 需要重新安装python-setuptoolsyum install python-setuptools