Try python setup.py install --user
You shouldn’t use sudo as suggested above for two reasons:
- You’re allowing arbitrary untrusted code off the internet to be run as root
- Passing the
--userflag topython setup.py installwill install the package to a user-owned directory. Your normal non-root user won’t be able to access the files installed bysudo piporsudo python setup.py