Elektrine lite

← Feed

@txtechnician@mastodon.social

Post #2005148

2026-04-17 20:56 UTC

@bryanredeagle Why is the "no home dir" being mentioned? Is it relevant to your setup? PyPi packages are often Linux System Packages too. You can install from PyPi, but will get a warning from your system. In general, the Python package in your System package manager is sometimes named "python-packageName". So, look for Linux packages before PyPi installs for ease of use. Outside of that: - python venv: `python3 -m venv venv` - docker python environment

Replies (2)

  • @colindean@mastodon.social 2026-04-17 21:10

    @txtechnician @bryanredeagle Agreed, try to use distro repo deps or maybe Homebrew if you can create a linuxbrew user or at least _a_ user can install to /home/linuxbrew/.linuxbrew. Otherwise, consider using uv's venv provisioner as an idempotent caching mechanism… it'll figure out what's writeable or you can set it.

    Open ##2005149

  • @bryanredeagle@beige.party 2026-04-17 21:37

    @txtechnician It's relevant because several solutions I've found or have been recommended assumes a home folder. uv for examples installs itself and all the packages in the home folder, and I'm not confident in what will happen if I override those locations. Using the distro packages would work, but a few of them are not present. I was mostly seeing if there was already a best practice for how to handle virtual environments for non-user accounts.

    Open ##2005151