Where should pygame be installed by pip? /usr/lib or ~/.local/lib?
0
I was testing CARLA, a self-driving car simulator on ubuntu 16.04.5 LTS last year and at that time, I had installed pygame. At that time pygame had been installed under /usr/lib/python2.7/dist-packages/pygame and I had fixed a file there to make it work right. Now, recently I re-installed ubuntu 16.04.5 LTS for the machine (only the OS part) and tried testing CARLA and found I have to install pygame(which is of course). So I did pip install pygame (without sudo) and CARLA now works again. But soon I found the location of pygame installation is now not /usr/lib/python2.7/dist-packages/pygame but ~/.local/lib/python2.7/site-packages/pygame. Why is it installed in my local home directory, not in the system directory? (I tried installing it with sudo, but it says Requirement alread satisfied.) I tried python -m ...