Reputation: 3
I try to install libtorrent for python by two methods, first:
pip install libtorrent
get this error:
ERROR: Could not find a version that satisfies the requirement libtorrent (from versions: none)
ERROR: No matching distribution found for libtorrent
second: download file from pypi.org and :
pip install libtorrent-2.0.9-cp310-cp310-win_amd64.whl
get this error:
ERROR: libtorrent-2.0.9-cp310-cp310-win_amd64.whl is not a supported wheel on this platform.
Also, the latest version of pip(24.3.1) setuptools(75.8.0) wheel(0.45.1) is installed.
I read this question and I think the problem is related to CPython version. libtorrent requires CPython 3.10 and my python is Python 3.12.1 (tags/v3.12.1:2305ca5, Dec 7 2023, 22:03:25) [MSC v.1937 64 bit (AMD64)] on win32.
Any kind of help is appreciated.
Upvotes: 0
Views: 178
Reputation: 4595
You must include the Python version.
Try this for Python 3.10
py -3.10 -m pip install libtorrent
For Python 3.12
py -3.12 -m pip install libtorrent
Upvotes: 0