uiautomator2 installation

Preparing the environment:

  • mac os(10.13.6)
  • adb
  • python36

 

Install python-uiautomator2

According to the Internet to install command as follows:

pip install --pre -U uiautomator2

Stepped pit:

Solution:

  • Upgrade pip
    • pip install --upgrade pip
  • Re-run command to install uiautomator2
    • pip install --user --upgrade --pre uiautomator2

 

 

 

 

Installation uiautomator2 installed as follows:

  • pillow-6.1.0
  • adbutils-0.4.4
  • deprecation-2.0.7
  • humanize-0.5.1
  • logzero-1.5.0
  • packaging-19.1
  • progress-1.5
  • pyparsing-2.4.2
  • retry-0.9.2
  • whichcraft-0.6.0 

 

 Windows environment using the command pip install --pre -U uiautomator2 installation fails

Preparing the environment:

  • windows 7
  • adb
  • python36

Stepped pit:

 

 Solution: reinstall pip

Download: https://pypi.org/project/pip/#files

 

 

 


Note Select tar.gz archive, the latest version is 19.2.3, select the version here is: pip-19.2.3.tar.gz

After the extract to the directory open a command line window enter the command:> python setup.py install

Check whether the installation was successful: pip -V

 

 

 Then run again> pip install --pre -U uiautomator2, the installation was successful as follows:

 

Guess you like

Origin www.cnblogs.com/helloTerry1987/p/11440324.html