Ignorant kid stepping into Python web portal

Source: Internet
Author: User

The first day of learning python flask , my little white brain, finally completed the environment configuration

Details are as follows, other small white mistake detours, hope and I like the people who love Python believe:python is the best language, hey!

Well, at the beginning, there is no place to look at the Great God Treatise:

1, build environment Win7 computer, first to python 's official website to download python IDLE( python integrated development environment, i.e. compiler)

Installation process I do not explain, but one thing to note, the installation of an option is an environment variable, pay attention to the next step (I did so, very worried, very worried)

2, so, in your Start menu bar appears python

3, download ez_setup.py , of course you can also find the full text, with notepad++(in order to protect the format) to create a new file and copy it, then we need to save and named ez_setup.py, put the file

Put it in the installation directory, mine is the C disk /user/administer directory

4, in cmd win command line, recommended to run as administrator, because I do not know if there will be a permissions problem) , cmd execute python ez_setup.py Install the virtual environment )

5, Cmd command, jump directory to d Span style= "font-family: the song Body;" > disk /python directory execution virtualenv mydir   ( This is the virtual Environment working folder Note: Jump Directory command d:    ( Here he jumps automatically to python directory, no, you . cd  python);

6, CMD command to jump to the mydir directory under the Scripts folder CD Scripts

Then enter activate.bat to enter the virtual environment, and then install our flask Module

Easy_install Flask

Installation is complete!

Second, open the virtual operating environment again:cmd jump to d:\python\mydir\Scripts

Execute the activate.bat command to

Or we can execute venv\scripts\activate in any directory and go into the virtual environment.

Ignorant kid stepping into Python web portal

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.