Install Python on Debian

How to install Python in a base Debian 7.4 Wheezy setup.

Over the years I have taught myself a handful of different programming languages. Allow me go into a little more detail: I taught myself programming just enough to get whataver job done that I wanted to get done at that time.

This article isn’t about my programming history, rather how to setup a really simple and clean Debian Linux server to begin teaching myself Python.

In my last article, I showed you how to setup a lean Linux server (Debian 7.4 Wheezy). Nothing fancy, just a terminal, SSH access, and that’s it.

This article, we are going to install Python so we can start teaching ourselves this language.


1. Install Python on Debian 7.4 Wheezy


Let’s install Python and some other software tools and libraries.

apt-get update
apt-get upgrade
apt-get install libpq-dev python-dev libjpeg-dev libpng-dev

2. Test the Installation

To verify you have Python installed, run the following command:

python --version

Your output should look something like the following screenshot:


At this point, you have Python installed. Let’s get busy and start learning this language!

Question for You

What programming languages have you messed around with?

About Chris Davis

Computer / Technology enthusiast. Very passionate about Systems Administration. I enjoy helping others try and reach their goals. You can follow Chris on if you'd like.


  1. R. Kaiser says:

    But what if I need python 3.3 (or newer)?
    All the best

  2. Would like to create a Linux box study environment on an old P4 65mg SSD machine. Any links to setting-up test environment ? Have been using CentOs in school and have worked with Ubuntu as well. But would like to set-up a server/client relationship similar to what windows does with active directory and clients. Does this make sense ? Needing a real world test environment to play around with….

Leave a Reply