Howdy all,
I'm attempting to install Debian's APT bindings for Python, in a
virtualenv and/or ‘pyproject.toml’ project dependencies, so that
programs can (for example) `import apt_pkg`. How should that be done?
The ‘python-apt’ entry at PyPI has been obsolete for years, and was
“yanked” in 2023. It has no installable version published. Similarly for
the ‘apt’ entry at PyPI.
>From what I can tell, the ‘python-apt-binary’ PyPI entry is what I need
<URL: https://pypi.org/project/python-apt-binary/> (though its metadata
is sparse and unhelpful). But when I attempt to install it:
=====
$ python3 -m pip install python-apt-binary
ERROR: Could not find a version that satisfies the requirement
python-apt-binary (from versions: none)
ERROR: No matching distribution found for python-apt-binary
=====
The <URL: https://pypi.org/project/python-apt-binary/#history> release
history of the PyPI entry shows sporadic entries, with version “3.0.0”
the latest, on 2026-09-15. Why does that not match the specified
‘python-apt-binary’ request?
How should I be getting this dependency satisfied in a Python project?
--
\ “Crime is contagious… if the government becomes a lawbreaker, |
`\ it breeds contempt for the law.” —Justice Louis Brandeis |
_o__) |
Ben Finney