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

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s