# Pylatte Official Webpage

Home

# Installation

This instruction is basically based on debian linux, Ubuntu.

## Python3.x Interpreter

Pylatte is python3.x based framework. Therefore it is mandatory to install python3.x interpreter.

    				$sudo apt-get install python3
    				$python3

Current version is python3.2. so it is up to you if you install python3 or python3.2. After installing, check out whether it is installed or not.

## Pylatte

## MySQL modules for python3

It is required to install MySQL module for python3. It makes using database with MySQL on python3.x possible.

### Install MySQL

    					$sudo apt-get install mysql-server mysql-client

During the installation, it is asked to enter root password.

### Install Distribute

    					$sudo apt-get install curl
    					$curl -0 http://python-distribute.org/distribute_setup.py
    					$sudo python3 distribute_setup.py

### Install MySQLdb for Python3

Some kind people contribute to development of python3 based MySQL module as open source. It helps developers connect between python3 and MySQL.

Download here : https://github.com/davispuh/MySQL-for-Python-3

    					$tar -xzvf MySQL-python-1.2.3.tar.gz
    					$cd MySQL-python-1.2.3

    					$vim site.cfg

Open site.cfg file to configure. Next, find //mysql_config and remove '//' to make it not a commnet. Then, input the path which mysql installed like mysql_config = /home/pylatte/mysql

After configuration, execute following command at path MySQL-python-1.2.3 is installed.

    					$sudo python3 setup.py build
    					$sudo python3 setup.py install

If EnvironmentError occured, check mysql_config configuration again, and execute following command.

    					$sudo apt-get install python-setuptools python-dev libmysqlclient15-dev

### Check if the installation is complete or not

Execute python3.x interpreter

    					$python3

Then, import MySQLdb

    					>>import MySQLdb

If import is successful without any error message, congratulation! it is complete.

## MongoDB modules for python3

It is required to install MongoDB module for python3. It makes using database with MongoDB on python3.x possible.

### Install MongoDB

    					$sudo apt-get install mongodb

### Install Mongodb for Python3

Download here : https://github.com/mongodb/mongo-python-driver

    					$tar -xzvf mongo-python-driver-py3k.tar.gz
    					$cd mongo-python-driver-py3k

After configuration, execute following command at path mongo-python-driver-py3k is installed.

    					$sudo python3 setup.py build
    					$sudo python3 setup.py install

### Check if the installation is complete or not

Execute python3.x interpreter

    					$python3

Then, import pymongo

    					>>import pymongo

If import is successful without any error message, congratulation! it is complete.

### More in this section

- Menu
- About
- Download
- Install
- Tutorial
- Documentation
- Comment
- F A Q
- Contact us