Score:2

ubuntu 23.04 python3 no module named ensurepip

sj flag

I am pulling my hair out over this issue.

I am not a python user so following random instructions I find anywhere to solve this issue but nothing works.

Basic problem is that I am trying to use ensurepip but it does not exist.

$ python3 -m ensurepip
/usr/bin/python3: No module named ensurepip

My python3 pip is up to date

$ sudo apt-get install python3-pip
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
python3-pip is already the newest version (23.0.1+dfsg-1).
0 to upgrade, 0 to newly install, 0 to remove and 35 not to upgrade.

I've seen suggestions about using a venv but no idea how to do that so other apps on the system would be able to use it without me having to do anything to them, but I don't really understand venv so may be missing the point.

I've seen other mentions that pip or ensurepip is intentionally disabled on ubuntu/debian but don't understand why that would be true as so many apps rely on using pip/ensurepip.

I just don't know what to do.

Kubuntu 23.04
Python 3.11.2
Esther avatar
es flag
what are you trying to do that you need ensurepip? ensurepip installs pip, but it looks like you have pip working already? This sounds like an X/Y question: what are you trying to solve by using ensurepip?
nobody special avatar
sj flag
@Esther This all started when I tried to install a module in Blender which borked. The error message I got was "import ensurepip ModuleNotFoundError: No module names `ensurepip`". So I went looking for ensurepip as that's the module it says is missing. I am not a python user so no idea what to do.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.