Windows operating system Win7 (64-bit) builds python3+flask development environment

     In a blink of an eye, there are still more than 90 days to see 2017, so fast! On the last day of September, another blog will be updated. Continue to learn python, I set up a python web development environment in the windows environment, following the steps in the book may not succeed, there are always errors of this kind and that, write down my installation steps and share them with you!

OS: 64-bit Win7

1. First install python3.6.2, the download address is https://www.python.org/getit/ , the installation process is omitted, the only thing to note is that as shown in the figure below, python is automatically added to the path environment variable, and you choose to install it yourself path, my installation path is: D:\Python36

2. Open the command window (cmd), enter python, it will display the python version you installed

3. Install pip, download address: https://pypi.python.org/pypi/pip/ , to select the version selected in the red box of the picture, and unzip it, my directory is E:\dist\pip-9.0.1

 

 

 Open the cmd command window, enter cd /d E:\dist\pip-9.0.1, enter the directory, and then enter python setup.py install  After the installation is successful, the following display is displayed, close the window

Fourth, re-cmd to open a new window, enter pip

5. Continue to enter

pip install virtualen



 6. After the installation is successful, go to the D:\Python36\Scripts directory and enter the command: virtualenv venv

Create a folder for a virtual Python environment

 

Seven, activate the virtual environment, enter venv\Scripts\activate

8. Continue to enter pip install flask above. If no error is reported, it means the installation is successful! applaud!

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326746944&siteId=291194637