Re:Free-threaded CPython is ready to experiment with
by guhidalg on Friday July 12, 2024 @07:00PM
(#40950232)
Normal users who just want to run some code shouldn't need to learn why they need a venv or any of its alternatives. Normal users just want to download a package and run some code without having to think about interfering with other packages. Many programming languages package managers give them that UX and you can't blame them for expecting that from Python. The added step of having to think about venvs with Python is not good. It is a non-trivial system that every single Python user is forced to learn, understand, and the continually remember every time they switch from one project to another.
[ Parent
| on HN ]
Re:Free-threaded CPython is ready to experiment with
by nine_k on Friday July 12, 2024 @08:21PM
(#40950672)
This is correct. The whole application installation process, including the creation of a venv, installing stuff into it, and registering it with some on-PATH launcher should be one command.
BTW pyenv comes relatively close.
Re:Free-threaded CPython is ready to experiment with
by simonw on Friday July 12, 2024 @08:32PM
(#40950748)
I agree with that. Until we solve that larger problem, people need to learn to use virtual environments, or at least learn to install Python tools using pipx.
Re:Free-threaded CPython is ready to experiment with
by VagabundoP on Saturday July 13, 2024 @03:32PM
(#40956281)
sudo apt install pipx
pipx install package_name
Takes care of the venv and the script/app path is added to system path.