You can run pip in an isolated virtual environment, in user mode (not as root) - see https://gist.github.com/saurabhshri/46e4069164b87a708b39d947...
https://gist.github.com/saurabhshri/46e4069164b87a708b39d947...
https://gist.github.com/saurabhshri/46e4069164b87a708b39d947...