sagemath package cannot install; requires python3-pip

2 Antworten [Letzter Beitrag]
xerxespersrex
Offline
Beigetreten: 04/30/2024

Hello everyone, I'm a math major and free software enthusiast and I would like to do as much of my work (research/studying/document preparation) on a free distribution as possible. Thankfully Trisquel has a great selection of math packages like sympy and Octave. In particular, I want to be able to do more discrete math stuff, so I'm interested in having access to Sage to do calculations. However, when I go to install sagemath from the repositories, it tries to pull in pip and fails:

$ sudo apt install sagemath
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
python3-virtualenv : Depends: python3-pip (>= 20.1-1~) but it is not installable
Depends: python3-pip-whl but it is not installable
E: Unable to correct problems, you have held broken packages.

(If it matters, I also have the backports repository enabled in /etc/apt/sources.list). I understand that pip is probably not inline with the free system distribution guidelines (since it's an entirely different package manager that can contain and suggest proprietary software), but would there be a way to patch out this requirement for future versions or otherwise avoid the need for pip? I can technically use sagemath hosted online on a few website, but for obvious reasons I don't want to rely on SaaSS's (and it's probably still slower than doing it locally on my T400).

Thanks in advance!

jxself
Offline
Beigetreten: 09/13/2010

Yeah, Trisquel doesn't have pip available. This might be a good bug to file since it makes this package uninstallable.

xerxespersrex
Offline
Beigetreten: 04/30/2024

Thanks for the reply, filing an issue report makes sense. I created an issue on the tracker for this just now: https://gitlab.trisquel.org/trisquel/package-helpers/-/issues/158