≡ Menu

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'm using cloud files from Rackspace that provides online storage and CDN for javascript, css, images and video files. However, I found that their online upload is not designed for bulk upload. How do I upload files to Rackspace cloud files storage using standard Linux or Unix ftp client in recursive mode?
[click to continue…]

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?
[click to continue…]

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

Tutorial details
DifficultyEasy (rss)
Root privilegesYes
RequirementsNone
Estimated completion timeN/A

Where can I find Python.h file and how do I fix this problem under Debian or Ubuntu Linux sever based system?
[click to continue…]

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?
[click to continue…]

How can I check if a file called /etc/resolv.conf exists or not using Python program?
[click to continue…]

HowTo: Install Python On Linux

How do I install python an interactive high-level object-oriented language on Linux operating system?
[click to continue…]

Python For Loop Examples

How and when do I use for loops under Python programming language?
[click to continue…]