1 # 镜像环境:UOS 2 3 # 安装pip3 4 sudo apt-get install python3-pip 5 # 安装pyautogui和依赖包 6 7 sudo pip3 install pillow 8 sudo pip3 install python3-xlib 9 sudo apt-get install scrot 10 sudo apt-get install python3-tk 11 sudo apt-get install python3-dev 12 sudo pip3 install pyautogui -i http://pypi.douban.com/simple --trusted-host pypi.douban.com 13 14 # 安装dogtail依赖包 15 sudo apt-get install python3-pyatspi 16 # 安装dogtail 17 sudo pip3 install dogtail 18 19 # 安装其他依赖包 20 sudo pip3 install ddt 21 sudo pip3 install BeautifulReport 22 sudo pip3 install xlrd 23 sudo pip3 install PyYAML 24 sudo pip3 install paramiko 25 26 # 安装图像识别的库 27 sudo pip3 install pyscreenshot 28 sudo pip3 install pytesseract 29 sudo pip3 install opencv-python==4.2.0.34 -i http://pypi.douban.com/simple --trusted-host pypi.douban.com 30 sudo apt-get install tesseract-ocr 31 sudo apt-get install tesseract-ocr-eng 32 sudo apt-get install tesseract-ocr-chi-sim