我尝试在google协作实验室中运行以下代码:
!apt install python3-libtorrent
import libtorrent as lt
I was able toinstall python3-libtorrent
。但是我无法导入libtorrent。但是上面的导入尝试给出了
ModuleNotFoundError: No module named 'libtorrent'
将这两行粘贴到代码的第一行之前。
!python -m pip install --upgrade pip setuptools wheel
!python -m pip install lbry-libtorrent
!python -m pip install lbry-libtorrent
!apt install python3-libtorrent
import libtorrent as lt
ses = lt.session()
ses.listen_on(6881, 6891)
downloads = []
python -m pip install——upgrade pip setuptools wheel
try
!python -m pip install lbry-libtorrent