Install Python without Admin rights (windows)

Appearently it’s quite simple to install python on a windows machine, even if you don’t have admin rights.

Remember, this only works if you downloaded the MSI installer version.

Open a command line in the same folder where you downloaded the python installer (Click here for the Python download page)

Execute this command on the CLI:

msiexec /a python-2.7.16.amd64.msi /qb TARGETDIR=C:\python27

Replace the version with your downloaded version

Python pip without internet

The title of this post is a bit misleading. I will not outline the use of pip without internet but I will suspect most people will search for this search string, thus coming here for an alternative.
I’ve been blessed with a very thorough security officer, who decided that CLI internet access is not permitted, even using CNTLM (1)is blocked.
The easiest way to install packages is via pip, but it’s also possible to install them via the commandline.
Using the example of Django, we will first download the tarball from the Django site;
https://www.djangoproject.com/download/
On the right side there’s a link to the latest release.
Unzip and untar the tarball and open a Prompt in that directory.
Then run the following command:
python setup.py install

Next, we’ll check if it is installed correctly:
2015-10-20 13_11_27-Opdrachtprompt