I tried to run this below code in google colabratory:
!apt install python3-libtorrent
import libtorrent as lt
I was able to install python3-libtorrent
. But am unable to import libtorrent. But the import attempt above gave a
ModuleNotFoundError: No module named 'libtorrent'
Paste these two lines before the first line in the code.
!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 = []
No need ;) !python -m pip install --upgrade pip setuptools wheel
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With