Tag Archives: programming

Python – Install pip and virtualenv and distribute without sudo access

Recently I started to so some dev on python and noticed that on the server that I was going to do the work I don’t have sudo access.  In the past, this has not been an issue, but in this case getting sudo access is almost impossible and not doable.  So my only option is being able to run pip (to install python packages) as an user.

After painfully researching on how to successfully do this, I was able to make it work.  I hope that this helps others in the future. Good luck!

  1. Make sure that you have python installed
  2. Download latest version of virtual environment (virtualenv)
  3. Unpack source tarball
  4. Create your package environment
  5. Delete the virtual environment folder
  6. Install virtualenv into your environment.  You can use the package that you downloaded or using pip.

  7. If you want to clone environments you can do the following