标题是不言而喻的。在linux和python2.7中,我得到了以下错误:
Could not find a version that satisfies the requirement python-libtorrent (from versions: )
No matching distribution found for python-libtorrent
我可以在pypi上看到:
那为什么不安装呢?
谢谢!
我想使用libtorrent-rasterbar来开发一些torren测试,但是当我试图编译包中的示例时,我得到了这个错误:
g++ dump_torrent.cpp
In file included from /usr/local/include/libtorrent/torrent_info.hpp:61:0,
from dump_torrent.cpp:40:
/usr/local/include/libtorrent/file_storage.hpp:110:8: error: ‘void libtorrent::file_storage::a
我尝试在google colabratory中运行以下代码:
!apt install python3-libtorrent
import libtorrent as lt
ses = lt.session()
ses.listen_on(6881, 6891)
downloads = []
我能够install python3-libtorrent。但是我无法导入libtorrent。它显示的是ModuleNotFoundError: No module named 'libtorrent'。它显示第二个代码是错误的,即"import libtorrent as l
我正试图通过synaptic package manager安装洪水,但我遇到了问题:
deluge:
Depends: python-libtorrent but it is not going to be installed
我尝试过通过apt-get重新安装python-libtorrent,而且我也遇到了问题:
The following packages have unmet dependencies:
python-libtorrent : Depends: libtorrent-rasterbar6 (= 0.15.7-1) but 0.15.9+svn.r6292-0ubu
我有个问题。我不是一个C/C++程序员,而且libtorrent文档对我来说也不是很清楚。没有类似于libtorrent的python文档那样的文档。
此时,我尝试搜索堆栈溢出的代码示例,以了解如何在会话中使用save_state和load_state。
有人能给我举个例子或者解释我如何保存会话状态并在以后加载它吗?
目标是恢复进程重新启动时的所有洪流.
ses = libtorrent.session()
ses.listen_on(6881, 6891)
if os.path.isfile('./tempfile'):
with open('./tempf
当我尝试在Linux中构建一个项目时,我得到了Error: undefined symbol clock_gettime。因此,我想我需要将-lrt添加到构建命令中(gcc)。但是,现在它不能在OS X中编译:ld: library not found for -lrt。我不知道这个函数是在哪里调用的,因为它是在静态链接的代码中调用的,但它似乎在没有库的OS X中工作得很好。链接的代码可能会在#if __APPLE__或其他东西后面使用替代代码。
有没有什么方法可以让gcc只在需要或者存在的情况下链接librt?如果没有,如何使用特定于操作系统的命令创建Makefile?我没有使用autoco
我试图静态地将Libtorrent链接到Visual 2013,但是在构建Libtorrent之后,我一直得到这个错误,然后编译我的项目:
LINK : fatal error LNK1104: cannot open file 'libboost_system-vc120-mt-1_55.lib'
当我静态地构建时,我没有libboost_system-vc120-mt-1_55.lib,而是libboost_system-vc120-mt-s-1_55.lib。我使用以下参数构建了助推器:
"toolset=msvc-12.0 variant=release l
在运行bjam命令时,我总是会遇到以下错误。我知道我遗漏了一些东西,比如设置环境变量,但不确定这些环境变量的精确值应该是多少。您的帮助将不胜感激。
Unable to load Boost.Build: could not find "boost-build.jam"
---------------------------------------------------------------
Attempted search from /tmp/libtorrent/libtorrent-rasterbar-1.1.4 up to the root
at /usr/share
for (torrent_info::file_iterator i = t.begin_files();
i != t.end_files(); ++i, ++index)
{
int first = t.map_file(index, 0, 1).piece;
int last = t.map_file(index, i->size - 1, 1).piece;
std::cou
我一直在使用python-libtorrent来检查包含多个文件的torrent中哪些文件属于一个文件。 我使用下面的代码遍历torrent文件 info = libtorrent.torrent_info('~/.torrent')
for f in info.files():
print f 但是这将返回<libtorrent.file_entry object at 0x7f0eda4fdcf0>,而我不知道如何从中提取信息。 我不知道torrent_info属性会返回各种文件的单件值信息。感谢您的一些帮助。
我正试图通过遵循b2来构建libtorrent,但是当我执行b2 install --prefix=PRIFIX时,我面临着这个错误
LDFLAGS =
OS = LINUX
Jamfile:944: in install-paths
ERROR: rule "version.boost-build" unknown in module "Jamfile</home/pavan/projects/torrents/libtorrent_install/libtorrent-2.0.7>".
Jamfile:1063: in install-pkg-c
from libtorrent as lt
info = lt.torrent_info(open('example.torrent','rb').read())
info.info_hash()
这不是散列,而是对象<libtorrent.big_number object at ...... >
我该怎么办?