How to install Python's PIP in Trisquel?
- Login o registrati per inviare commenti
Hey ya'll,
I put as much effort as possible to be cognitive of the software I utilize and sway away from proprietary tools.
However, I do occasionally need to utilize the Python3 tool Pip. Can I install it manually on Trisquel?
```
curl https://bootstrap.pypa.io/pip/2.7/get-pip.py --output get-pip.py
sudo python2 get-pip.py
```
Appears to have fixed my issues. Thank you
Note: installs pip for `python2`
Thanks for posting this, I was wondering the same thing for Trisquel 11.
I downloaded the script for python3 and ran that, and now have python3-pip.
If there's a way I could help make python3-pip pre-installed, or add make it accessible with "apt -y install python3-pip" I'd like to do so.
Trisquel is unable to provide this as the default online repository of public packages does not exclusively include free software. I invite you to consult the GNU FSDG for further information on this matter: https://www.gnu.org/distros/free-system-distribution-guidelines.html
If someone were to make a different repository that could be used with PIP and was 100% free software then that would be a different matter and the situation could be re-considered at that point.
Python is free software, perhaps there's a way the OS can run the install python-pip script while the OS is installing from a thumb drive?
I'm aware that the Ubuntu repos do not comply with the GNU FSDG, but Trisquel doesn't need those to install or have python3-pip.
I don't believe the issue is the Ubuntu repositories in this case. pip uses a separate repository called the Python Package Index, independent of the distribution it is running on. As already pointed out, this repository contains both free and non-free software, and hence cannot be included in the Trisquel repositories.
From a quick search I cannot find any repositories that claim or prove to contain only free python packages. Perhaps others are aware of one, as the index pip uses can easily be changed to an alternative.
Hope this helps!
That does help and that does make sense. I suppose a worthy goal for the future is a version of the Python Package Index that only has free software.
Thanks for clarifying.
When I wanted to install a seafile server, although the instructions include using pip3 to install a number of things, I found that those things were actually available as regular Trisquel packages. I searched in DuckDuckGo for each python package to see the description and then used apt search. For instance, python3-pil provides the Python imaging library, so "sudo apt install python3-pil" replaces "sudo pip3 install Pillow".
While this is extra work, using only apt with Trisquel repository gives me some more peace of mind as I am certain to only get free software and I don't have to trust one more repository.
So far, I solved all my problems without pip3, but that may not always be possible.
I brought this issue up in the #Trisquel on Libera IRC, and proposed the idea of making a version of PyPi that only had Free Software. I said I wanted something that offered the convenience where people could simply type "pip3 install aiohttp".
I am grateful to jxself for coming up with ideas on how to implement this. He mentioned the idea of filtering non-free packages out of pypi instead of us hosting our own, thus saving disk space, etc.
So far, we've decided that making a program that would scan PyPi, and discard non-free packages is a better idea than hosting our own PyPi with a copy of each package.
I made #FreePi, and we are currently working on some code. I'm working on code that'll scrape pages, and I think jxself has an idea we can utilize pip to connect with this plugin.
Thus, FreePi will be something that trisquel users can use to install only Free Software packages from PyPi. This should work not just for Trisquel users, but other GNU/Linux users as well.
The problem has inspired an idea.
Anyone who is interested in helping can feel free to join us in #FreePi at libera.chat IRC.
I once again want to thank jxself for putting in thought and time into the project.
I hope my work proves to be a useful contribution to Trisquel and GNU/Linux in general.
- Login o registrati per inviare commenti