APP automate the installation of Python (library) environments

Foreword

In the near future the project team in developing a APP, so take advantage of research about the use of Appium + python to do automated testing.

Prepare a .python environment

First, you need a runtime environment python language, just like you want to run JAVA environment variables to configure JAVA, Python is also required to perform an execution entrance that environment variable.

  1. The need to download python python library official website, the official website address: https://www.python.org/getit/ , select Downloads, I am using the win10 system, so here choose Windows, enter the download interface recommended to choose a stable version, to reduce detours, under normal circumstances is recommended for novice to use the stable version. Click on Python 3.7.7 - March 10, 2020 for download, the download is complete will be an exe executable file.

 

 

Downloaded installation file as shown below:

 

 

  2. Install Python library

   Right-python-3.7.7-amd64.exe, select Run as administrator.

 

 

 

 

 

 

 

 

 

 See figure, the installation is completed. But it is still not available, can only be said to have been python library on your computer.

 

 

Second, the configuration environment variable, as shown below:

  Increase the installation path in the path of the python library environment variable, as shown, after determining the configuration environment

 

 

 Third, verify that the installation was successful

1. Open the windows command line window, click on the lower left corner of the Start icon, type cmd, and choose a command prompt, click Open

 

 2. Python input, output as shown below, indicates that the installation was successful

 

 

Problems encountered:

Question 1: When a python-3.7.7-amd64.exe file, you will be prompted not have permission

Solution: Cancel the installation, and then right-python-3.7.7-amd64.exe file, select Run as Administrator to install success

PS: Many of the blog that when installing python library files to be selected automatically add environment variables, but I personally do not recommend it, because very often unsuccessful run automatically add environment variable is not correct, or the need to manually adjust .

 

Guess you like

Origin www.cnblogs.com/wx170119/p/12640021.html