Removed pip - need it back

Hello,

In an effort to upgrade pip, I resorted to removing it, now I am stuck. Currently using the following version

Version: 25.8.1.1 (X86_64) / LibreOffice Community
Build ID: 54047653041915e595ad4e45cccea684809c77b5
CPU threads: 4; OS: Linux 6.8; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Flatpak
Calc: threaded

On linux mint 22.2

Any solution will be greatly appreciated

1 Like

Wend you say: now I am stuck. Mean you can’t reinstall?
What steps have you taken?

1 Like

I went to the shell and and downloaded pip from source python file and executed it to install.

Also used the extension, i don’t remember who’s extension, to reinstall pip

Here is what i got:

Python location: /usr/bin/python3
Active pip location: /home/minhas/.var/app/org.libreoffice.LibreOffice/sandbox/lib/python3.13/site-packages/pip/init.py

/usr/bin/python3: No module named pip

image

Please note that the pip version installed in the location is 24.3.1.

1 Like

Shouldn’t there be also ensurepip available?
I don’t know, if it was mentioned in release-noter or bug-report…

EDIT:

pip can be installed with “instdir/program/python -m ensurepip”

Is from here:
https://bugs.documentfoundation.org/show_bug.cgi?id=162786

1 Like

Thank you. Will check later today and confirm.

1 Like

thats a flatpak-container

NO, NO … there is no need for download something from somewhere!

NO, NO, NO there is especially no need to use any garbage provided by @vib

open a terminal, switch into the flatpak-namespace, and install the usual way:

$ flatpak run --command=bash org.libreoffice.LibreOffice 
$ python -m pip install pip --upgrade
$ python -m pip install <what ever you want>

thats all!

2 Likes

@Wanderer the bug is only for LO-packages downloaded directly from LO with their own restricted python, the LO-flatpak-python is not restricted this way!

1 Like

Ok thank you. Again. I will check and update everyone.

Yes, I didn’t see the strange location.

no need to use any garbage provided by

Really, is the adjective really necessary? :pensive:

I think so. If these strange extensions didn’t exist, others wouldn’t be able to use them to produce nonsense.

1 Like

I don’t think so. There’s a lot of work behind the scenes that doesn’t deserve it, and I find those expressions in our community regrettable. I invite you to think about it.

Hello

I just tried this method. It works 100%. Thank you.