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
--user
flag topython setup.py install
will install the package to a user-owned directory. Your normal non-root user won’t be able to access the files installed bysudo pip
orsudo python setup.py