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