Skip to content

Teguh Eko Budiarto

Web Programming and Sharing Experience

Archive

Tag: Python

This tip is for windows XP user ( some other windows version will also have similar procedure).

If you are using an automatic configuration script for your internet setting, most probably, Python will not be able to connect to internet. This is troublesome if you want to install some packages which has dependencies which need to be fetched from the net. You need to change your internet options setting to use the proxy address directly.

Below is how to do that:

  • Go to Control Panel
  • Open Internet Options
  • Open Connection Tab
  • Click on LAN Settings button
  • Check the Use a proxy server for your LAN…
  • Enter the proxy IP Address and its port. If you do not know where it is, ask your network administrator or just open the configuration script to find out where is the IP you need to use.
  • Press OK until all the setting windows are closed.

Below is the screen shot of the internet options screen.

Windows XP Professional Internet Options Screen

Windows XP Professional Internet Options Screen

I wrote this post in my journey to adapt Python with Django framework as my tool in the next project. A little bit skeptical and some holding back since I had background in PHP and C# .Net. But, I have no choice because Python is already team’s decision for new projects. So, here I go with learning new language and framework again.

In the way, sometimes I can not find a distributable package for your Python version. In one case, I would like to install setuptools to install other packages, soaplib which I need to build a SOAP web service. This is because most of our legacy applications are using C# which using SOAP to interface with web services, otherwise, I prefer to create REST based web service. Anyway, this is just my beginner way of thinking.

So, enough with the mumbling, below is how it is:

  • Unpack the source into a folder.
  • Using command prompt, go to the folder and run command below ( I assume that you already set your python PATH and can run Python command from command prompt).
  • python setup.py bdist_wininst
  • Voila! An executable installer for your installed Python version will be available in dist sub folder.

Very easy isn’t it? Yeah, if it is that easy for me to find how in the first place, I would’nt write this post.