导入futures python时出错

2024-10-01 07:24:16 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在尝试使用这个模块^{}与python一起流式传输torrent,但是当我尝试

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

我得到这个错误

^{pr2}$

它告诉我安装^{}模块,我做到了:

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

但是我仍然得到同样的错误。我确实需要让它工作起来,因为这是唯一的用于torrent流的python库。在


Tags: 模块pipfromimportdefaulton错误流式
2条回答

打开SimpleTorrentStreaming.py文件并替换此行

from futures import ThreadPoolExecutor

^{pr2}$

这里是SimpleTorrentStreaming的作者。在

很久以前,我将这个库从另一个项目中分离出来,出于某种原因,我放弃了它,希望在我有时间完成它之前,没有人会进入github存储库列表的底部。在

我已经发布了一个新版本(0.1.1),它实际上很有用。在

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

相关问题 更多 >