I received the following error message when I installed some python packages in a debian instance: 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
There are packages installed under /usr/local/lib/python3.7, /usr/local/lib/python2.7 and /home/oliver/.local/lib/python3.7 The packages under /usr/local/lib are owned by root and the packages under /home/oliver/.local/lib are owned by oliver
Some version information:
Debian: 10
python3 -V : 3.7.3
python -V : 2.7.16
pip3 -V (and pip -V): 22.0.3
The primary question I have at this point is where should the python 3 packages ideally reside (and with what permissions) so as to be accessible to all users?