Flask Getting Started (i)-----------installation

Source: Internet
Author: User
Tags virtualenv

About the history of flask here do not introduce more.

First of all, the official tutorials are introduced to the use of virtualenv. Personally think that if the first contact with the Python Web application, it is not available here, after all, there is no access to many projects, so there is no official manual said that too many items will exist in the library version of the conflict caused by the situation.

The following is a different system installation, detailed introduction.

Windows

Because the PIP command is used to install flask, the PIP command can be downloaded by easy_install.py file. Open the directory of the file double-click Run installation. (If you click the link does not download the file but jump to the page that shows the contents of the file, create a new easy_install.py file, and then copy the contents of the content to save, then double-click to run the installation.) )

Add some Python commands to the system variables to make it easy to run directly later. If the installation path for Python is C:\Python, the C:\Python\Scripts is added to the path. How to do this: Right-click on the "My Computer" icon and click "Properties" in the pop-up menu. Then click "Advanced System Settings" (If Windows XP, click on "Advanced" paging). Then click on the "Environment variables" button and double-click the "Path" variable in the "System Variables" section. Remember to split the semicolon with the content that the path already exists.

Open Run, enter

Easy_install pip

After the installation is successful, run

Install Flask

OS X/linux

  

sudo Install Flask

The Official handbook does not seem to recommend this.

The official recommendation is to install flask in the virtualenv.

Flask Getting Started (i)-----------installation

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.