pip install weditor installation error

1. Question 1

  • The following error occurs when pip install weditor:UnicodeDecodeError: 'gbk' codec can't decode byte 0xad in position 829: illegal multibyte sequence
    insert image description here
  • solution
    • Solution 1: Downgrade version, pip install weditor==0.6.4
    • Solution 2: Open the cmd window and enter set PYTHONUTF8=1the python environment encoding to utf-8 mode, and then try pip install weditor to install the latest version successfully
      insert image description here

3. Question 2

  • The disappearance of the control element in the middle part, only the top and bottom have element boxes
    insert image description here
  • Solution, first try to enter in the cmd window python -m uiautomator2 init, and then click statically or next to the real-time on the following visual interface
    insert image description here

Guess you like

Origin blog.csdn.net/weixin_43411585/article/details/127762860