Search

Python Modules

Python MySQL Getting-Started on Linux

  1. Installation
  2. Connection
  3. Insertion
  4. Query

Installation

Prerequisite: Setuptools and Pip Installed for your Python platform

To Getting-Started working with MySQL in Python you need to have Installed the Module MySQL-python.

Python Module Installation "EnvironmentError: mysql_config not found" in Linux

This should due to Missing Development Libraries from your MySQL Installation.

In Debian like in Ubunt you can easily resolve this probleme by installing the Package:

sudo apt-get install libmysqlclient-dev

After you can provide to Successfuly install MySQL Module for Python with:

Prepare to Install Python Modules with Setuptools and Pip

 

The Requisites to Install New Python Modules are at least to have the Python Setuptools Installed on your System.

To test if Setutools are present on your System, open a Terminal window and exec:

which easy_install

If Not look to this Python Tut -> Installing Setuptools

Theme by Danetsoft and Danang Probo Sayekti inspired by Maksimer