Score:0

You can't use `pip` on Ubuntu 23.04 anymore

az flag

To cut a long tale short, you will no longer be able to do pip install x. The command does not work with Ubuntu 23.04 due to a deliberate policy change to avoid conflicts between the Python package manager (pip) and Ubuntu's underlying APT. pip can now only be used in a virtual environment created with venv.

My question is if this is a good or negative thing. Is this a good move by the Ubuntu team? Only being able to utilize pip in a virtual environment. What are your thoughts on the situation?

guiverc avatar
cn flag
This change wasn't actually done by the Ubuntu team, it exists in upstream Debian too if you look, either way I see your question as off-topic as this is a Q&A site and not a forum. Thoughts or *opinions* are off-topic, and your question does **not** have a specific problem (question) to be solved - please refer https://askubuntu.com/help/dont-ask
andrew.46 avatar
in flag
Looks very much like a spam or self promotion link has been added. I have removed this, please read this: https://askubuntu.com/help/promotion
Levente avatar
cn flag
I don't code python but had read about it that its installer tends to create an unusually huge dependency hell (conflicting dependency versions) that is painful / hopeless to manage. Separating projects through the usage of virtual environments were portrayed as the best practice to avoid this, and keep dependency management pain free. Basically, this does not impact one when one installs only one project in the global scope. But as soon as you try to have multiple projects in the global scope dependency hell hits. Therefore virtual envs. Or so I remember reading, some 5-6-ish years ago.
Score:3
cn flag

You can use pipx, Python local installer:

$ sudo apt install pipx

and then, for example:

$ pipx install yt-dlp
$ pipx install speedtest-cli
$ pipx upgrade-all
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.