This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eric.araujo
Recipients eric.araujo, shreyanavigyan
Date 2021-05-07.20:14:30
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1620418470.49.0.79060388525.issue43992@roundup.psfhosted.org>
In-reply-to
Content
apt build-dep (or aptitude build-dep) is a command used to get build-time dependencies for the system package, which are not always the same as the upstream in-development version of Python.

As the error message told you, you need deb-src lines in your sources.list to have this work.  An example is here, it may not be up-to-date (refers to ubuntu bionic and python3.6) but hopefully you can adapt it: https://devguide.python.org/setup/#build-dependencies

I think more explanations should come from ubuntu documentation or forums, not Python docs; Python can’t document every facility from every OS.
History
Date User Action Args
2021-05-07 20:14:30eric.araujosetrecipients: + eric.araujo, shreyanavigyan
2021-05-07 20:14:30eric.araujosetmessageid: <1620418470.49.0.79060388525.issue43992@roundup.psfhosted.org>
2021-05-07 20:14:30eric.araujolinkissue43992 messages
2021-05-07 20:14:30eric.araujocreate