You are not logged in.
Some time back I established a virtual environment for all my python scripts, 3rd party libraries they rely on etc. using
python -m venv envnameThis was done specifically to avoid having my codebase disrupted by Python related changes / upgrades to my Arch install. I'd had no issues for the better part of a year, all updates to Arch left my venv unaffected and running as intended. I'd not run the code from the venv in some time, but now coming back to it I'm getting tons of
ModuleNotFoundError:messages despite running the scripts from the venv:
source ~/pvenv/bin/activate
~/pvenv/bin/python scriptname.pySurely the modules are all still present in the venv (I can't imagine an Arch update would touch virtual environments)? If that's the case where have I gone wrong and how do I avoid this mess going forward?
Last edited by audiomuze (2025-02-22 13:14:27)
Linux user #338966
Offline
https://bbs.archlinux.org/viewtopic.php?id=295310 mentions after some python upgrades the venv may need to be recreated.
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
clean chroot building not flexible enough ?
Try clean chroot manager by graysky
Offline
venv just symlinks the interpreter. Your pyenv/bin/python is just a symlink to /usr/bin/python. It doesn't even link the versioned name, so your old venv may even have a /bin/python3.12 that is a link which resolves to 3.13.
Offline