首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > perl python >

初级BT有关问题,

2012-04-06 
初级BT问题,在线等。。。环境python2.5下载了:BitTorrent-5.0.1.tar.gztarxzvfBitTorrent-5.0.1.tar.gzcdBitT

初级BT问题,在线等。。。
环境   python2.5
下载了:BitTorrent-5.0.1.tar.gz
tar   xzvf   BitTorrent-5.0.1.tar.gz
cd   BitTorrent-5.0.1

./bittorrent-tracker.py   --port   6969   --dfile   dstate
然后就是按照   README.txt安装,可是第一步就遇到这样的问题,错误提示如下:


Traceback   (most   recent   call   last):
    File   "./bittorrent-tracker.py ",   line   17,   in   <module>
        from   BitTorrent.translation   import   _
    File   "/usr/soft/BitTorrent-5.0.1/BitTorrent/__init__.py ",   line   49,   in   <module>
        from   BitTorrent.platform   import   get_temp_subdir,   get_dot_dir,   is_frozen_exe
    File   "/usr/soft/BitTorrent-5.0.1/BitTorrent/platform.py ",   line   120,   in   <module>
        from   BTL.defer   import   ThreadedDeferred
    File   "/usr/soft/BitTorrent-5.0.1/BTL/defer.py ",   line   15,   in   <module>
        from   twisted.internet   import   defer
ImportError:   No   module   named   twisted.internet

像是说不能导入twisted.internet
请问怎么解决?

[解决办法]
缺少twisted包,不知道是不是要自己装一个。你看下README.txt里面有没有关于twisted的说明吧。

热点排行