Recently began to learn Python, the teacher let the deployment of the Python environment, deployed on the x86 platform is no pressure, think can not be a set of Raspberry Pi. Because using the Raspbian system and Debian is almost a problem when installing Mysql-python. Now record as follows:
First Raspbian switch to root mode
Installing the Flask tool Set
Apt-get Install Python -setuptools
Easy_install pip
Pip Install Ipython
Pip Install flask
Install Apt-get installation Libmysqlclient-dev This package first
Pip Install Mysql-python
Installation Python-mysql cannot be installed, so use Apt-get install Pytho-mysqldb
To test if the installation is successful you can use Python
Go to command line interface
Import flask Enter to see if there is an error, if there is no error to prove the installation success
Import MySQLdb Enter to see if there is an error, no error to prove the successful installation
Installing Git-core
Apt-get Install Git-core
Installing Java
Apt-get Install OPENJDK-7-JDK
This article is from the "Learning Exchange" blog, please be sure to keep this source http://725689.blog.51cto.com/715689/1825504
Deploying a python flask environment using Raspberry Pi