How to install Python 3's PIP in Trisquel?

6 risposte [Ultimo contenuto]
myrcy

I am a member!

Offline
Iscritto: 10/30/2021

Hey everyone!
I hope this message finds you well. I am attempting to do some work for a college course and need access to Python's Pip.

Free Software Foundation Direction Entry for Software: https://directory.fsf.org/wiki/Python-pip

Related Thread: "How to install Python's PIP in Trisquel?"—article from 2022 primarily concerning Python2

myrcy

I am a member!

Offline
Iscritto: 10/30/2021

Deadsnakes appears to be a potential solution to this issue:

https://launchpad.net/%7Edeadsnakes/+archive/ubuntu/ppa

Let me know if you all know of any other solutions.

Edit: It does not appear as if ```deadsnakes``` includes ```python-pip```.

Ark74

I am a member!

I am a translator!

Offline
Iscritto: 07/15/2009

You might not be aware but the main reason for PIP to be removed, is that it's a third party installer like many others that Trisquel can't remove non-free software from, so it is likely that you might be pulling some non-free software from there, thus it's not available.

Please read the Trisquel Community Guidelines, the very first value is:

Our community's resources --the forum, documentation, etc-- are for free software only. Please do not distribute, recommend, or support non-free software here.

If you plan to run pip on your end, please avoid promoting it here.

Avron

I am a translator!

Offline
Iscritto: 08/18/2020

In my understanding, pip itself is free software, and it is the main installation method (and usually the only documented one) for a lot of free software programs. Not having pip and not having an alternative installation method means not being able to use such free software programs.

Are you aware of any alternative to use free software programs that normally require pip for installation? For example, if I download the source code of the program and of its dependencies, inspect the source code myself to check that there are free software licenses for all and nothing looking like binary put into code, is there any way to compile and run the program without using pip that is documented somewhere?

myrcy

I am a member!

Offline
Iscritto: 10/30/2021

> In my understanding, pip itself is free software, and it is the main installation method (and usually the only documented one) for a lot of free software programs. Not having pip and not having an alternative installation method means not being able to use such free software programs.

This is an interesting idea. I have only ever utilized pip to install these packages but maybe it is possible without.

This appears to include a guide for Python 2.0:
https://stackoverflow.com/questions/13270877/how-to-manually-install-a-pypi-module-without-pip-easy-install

I will have to attempt this for python3 in the future. Thank you so much for your response
—Best

myrcy

I am a member!

Offline
Iscritto: 10/30/2021

Hello Ark74,
Thank you so much for your response.
Pip for my purposes is mostly utilized for installing applications from local archives I have personally vetted—as from reputable free/libre software projects: https://packaging.python.org/en/latest/tutorials/installing-packages/#installing-from-local-archives

What your post is referring to is primarily the PyPi Index (also known as the Cheeseshop).

I am less aware of the issues related to this. I know that the Guix package is stated to utilize these indices:

- https://packages.guix.gnu.org/packages/python-pip/

As such, I have crafted a talk on the FSF's wiki to discuss potential concerns:

- https://directory.fsf.org/wiki/Talk:Python-pip

You can utilize pip without indices; however I am uncertain if an edition with it preconfigured without PyPi is available.

prospero
Offline
Iscritto: 05/20/2022

I was under the impression that you can add/remove any index url from pip with a single command. If so, a Trisquel helper could package pip without the offending url.

That said, if there is no repo committed to including free software only, pip itself may be of limited use, except with the occasional user managed private index. That may still be enough to avoid offending the FSDG - "Nor should the distribution refer to third-party repositories that are not committed to only including free software; even if they only have free software today, that may not be true tomorrow."[1] - since there would be no reference to any repo whatsoever.

[1] see the "License Rules" section of the FSDG: https://www.gnu.org/distros/free-system-distribution-guidelines.html.