3 ms·
Article prompted me to take Guix for a test-drive (as a user, not yet as a package-writer), but I'm running into some peculiar behavior. Installing Python with
by amelius 4y ago
Article prompted me to take Guix for a test-drive (as a user, not yet as a package-writer), but I'm running into some peculiar behavior.
Installing Python with "guix install python" tells me:
The following package will be installed:
python 3.8.2
But then it starts downloading
tcl-8.6.10
tk-8.6.10
python-3.8.2-tk
I find this strange, because Python is most often used without Tk (or Tcl) and I don't want to waste disk space.
Also, it installs pip3. But you can't use pip3 because you will get:
ERROR: Could not install packages due to an EnvironmentError: [Errno 30] Read-only file system: '/gnu/store/...'
I guess Python packages should be installed using Guix too.
(EDIT: yes, you have to install them like "guix install python-numpy" etc.)
Imho, this is a pity because it means one package manager (Guix) is circumventing another (pip), and thus wasting the effort that went into building and supporting it.
- antihero 4y agoHistorically I think the tk UI lib has been considered the always available UI library in “batteries included” python. You’re getting the permissions error as by default pip installs system-wide, for local stuff use the local option or a virtualenv.
- ryukafalz 4y ago> Imho, this is a pity because it means one package manager (Guix) is circumventing another (pip), and thus wasting the effort that went into building and supporting it. The thing is, language package managers may work well for software written solely in that language, but that breaks down real fast when any of them have native dependencies (and many do). Guix is intended to be a universal Linux package manager that can handle packages written in any language on any distro. (It does this better for some languages than others, admittedly.) I’ve experienced enough very broken Python environments that I appreciate only having one package manager to worry about. I wouldn’t say it’s wasting the effort of Python packaging devs though; it does have an importer for pip packages, so the standard Python packaging work makes it easier to import pip packages into Guix.
- dane-pgp 4y ago[flagged]