pip install fails with “Permission denied” on Python 3+

Overview Python’s integrated package manager, pip, fails to install packages when Python 3.0 and above is used raising a PermissionError. Below is an abbreviated sample output: [myadmin@sol]$ pip install django Downloading/unpacking django Installing collected packages: django Cleaning up… Exception: Traceback (most recent call last): File “/.socket/python/python3.4/site-packages/pip/wheel.py”, line 205, in clobber os.makedirs(destdir) File “/.socket/python/python3.4/os.py”, line 237,…