The Python 3.5+ documentation describes ensurepip
as a part of the standard library, and multiple resources (e.g., this page) are written as if ensurepip
is assumed to be available with recent Python 3 installations. However, as other postings in Stack Overflow have noted, this does not appear to be the case, at least with Ubuntu and Debian. Now I am confused about how I should instruct my users to install Python-based software. I have been telling people to use python3 -m ensurepip
followed by python3 -m pip install ...
(as in this example) but a colleague recently found that, sure enough, ensurepip
does not exist after installing Python on an Ubuntu system. Now I don't know whether I need to write about exceptions to the general instructions. Worse, I don't know how to find out which systems do or don't have ensurepip
.
Is ensurepip
supposed to be available as a standard library with every Python 3.5+ installation? If not, how do I find out which installations include it, and which don't?