I don't know if I should be concerned or not but I get a warning message whenever I install a package with pip.
The message:
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
#getting a Warning message everytime I install a package with pip.
12 messages · Page 1 of 1 (latest)
If I remember correctly then without sudo all the packages get installed in .local. I got the suggestion to use sudo from gpt.
is that a problem?
Don't blindly trust everything that GPT says, btw. It's often wrong.
But there's already a folder for that /lib/python3.10/?
I thought that was the appropritate place to store packages
Anything that is stored in ~/, aka, the home directory, are only available to the current user. So by putting it in /lib/ or /bin/ or whatever, you are installing the program system wide (for all users). But it doesn't matter in practice, because (I assume) you only have one user anyways.
There is nothing wrong with installing pip applications in the home folder.
And, as mentioned by the warning, it is even recommended to do so.
lght