2015-08-25 85 views
1

我想使用这个模块SimpleTorrentStreaming要流与蟒蛇洪流但是当我尝试错误导入期货蟒蛇

Python 2.7.6 (default, Jun 22 2015, 17:58:13) 
[GCC 4.8.2] on linux2 
>>> from SimpleTorrentStreaming import SimpleTorrentStreaming 

我得到这个错误

Traceback (most recent call last): 
    File "<stdin>", line 1, in <module> 
    File "/usr/local/lib/python2.7/dist-packages/SimpleTorrentStreaming/SimpleTorrentStreaming.py", line 7, in <module> 
    from futures import ThreadPoolExecutor 
ImportError: No module named futures 

哪位告诉我安装futures模块,和我做:

$ pip freeze 
.... 
futures==3.0.3 
.... 

不过,我仍然得到同样的错误。我真的需要得到这个工作,因为这是只有 python库的torrent流。

+0

你确定你使用相同的解释为这两种操作? – jonrsharpe

+0

是的,我敢肯定,因为我可以'导入SimpleTorrentStreaming'。但请告诉我,如果他们是另一种确定的方式。 – Chaker

+0

谢谢@SDilmac它解决了我的问题。 – Chaker

回答

0

打开SimpleTorrentStreaming.py文件,并SimpleTorrentStreaming这里的

from concurrent.futures import * 
2

作者替换该行

from futures import ThreadPoolExecutor 

很久以前,我把这个库从另一个项目中分离出来,出于某种原因,我放弃了它,希望没有人能够到我的github仓库列表的底部,直到我有时间完成它。

我发布了一个新版本(0.1.1),这个版本实际上起作用。

https://github.com/XayOn/python-simpletorrentstreaming https://pypi.python.org/pypi/SimpleTorrentStreaming/0.1.1

+0

我重写了python3.5的库+ https://github.com/XayOn/torrentstream –