Python Tutorials and HowTos

Python programming related tutorial, howtos, tips, and hacks under Unix like operating systems with special focus on sys admin tasks ( rss feed ).

I would like to install python packages using the pip command which is an easy_install command replacement. How do I install pip comamnd under RHEL / CentOS / Debian / Ubuntu Linux server systems?

{ 4 comments }

I‘m trying to install 3rd party python apps using pip command and getting the following error:


gcc -pthread -fno-strict-aliasing -fwrapv -Wall -Wstrict-prototypes -fPIC -std=c99 -O3 -fomit-frame-pointer -Isrc/ -I/usr/include/python2.7 -c src/MD2.c -o build/temp.linux-x86_64-2.7/src/MD2.o

src/MD2.c:31:20: fatal error: Python.h: No such file or directory

compilation terminated.

error: command 'gcc' failed with exit status 1

Where can I find Python.h file and how do I fix this problem under Debian or Ubuntu Linux sever based system?

{ 18 comments }

Neggear DGND3700 is an all-in-one router with built-in ADSL2+ modem and WAN gigabit Ethernet port for cable/fiber combined with a wireless router create the integrated home gateway. How do I enable telnet access on this router under Linux or OS X operating systems?

{ 0 comments }

How can I check if a file called /etc/resolv.conf exists or not using Python program?

{ 0 comments }

How do I install python an interactive high-level object-oriented language on Linux operating system?

{ 0 comments }

Python For Loop Examples

by on November 15, 2011 · 1 comment

How and when do I use for loops under Python programming language?

{ 1 comment }

How do I convert a string such as x=’12345′ to an integer (int) under Python programming language?

{ 1 comment }