Deploying a python flask environment using Raspberry Pi

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.