pip3 error - '_NamespacePath' object has no attribute 'sort'

I tried to install a package through pip3, and I got this error. Every pip/pip3 command that I run gives me this error- alexg@hitbox:~$ pip3 -V Traceback (most recent call last): File "/usr/loc...