# airtest **Repository Path**: lengineerc/airtest ## Basic Information - **Project Name**: airtest - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-04-14 - **Last Updated**: 2026-04-22 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README 1. python 的版本为3.7 img 目录为模版图像,必须手工创建 ocrModel 目录必须拷贝 temp 目录为临时目录,程序自动创建 ```shell pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/ pip install paddlepaddle pip install paddleocr pip install pyautogui pip install airtest pip install pyinstaller==4.10 ``` 2. 程序打包 ```shell pyinstaller --onefile ui_security_test.py ``` ```shell pip uninstall opencv-python opencv-python-headless opencv-contrib-python pip install opencv-python==4.5.3.56 # 推荐稳定版本 pyinstaller --onedir ui_security_test.py ``` pyinstaller --paths "C:\Users\15677\miniconda3\envs\EestAirTest\Lib\site-packages\cv2" --onedir ui_security_test.py pyinstaller --add-data "D:\\PythonProject\\EestAirTest\\dist\\ui_security_test\\paddle\\fluid\\libpaddle.pyd;." --hidden-import paddle --paths "C:\Users\15677\miniconda3\envs\EestAirTest\Lib\site-packages\cv2,"C:\Users\15677\miniconda3\envs\EestAirTest\Lib\site-packages\paddle\fluid", --onedir ui_security_test.py # 打包 ``` pyinstaller 5.13.2 ``` pip install shapely 检查imhdr python -c "import imghdr; print(imghdr.__file__)" 此命令打包成功 pyinstaller --onedir ui_security_test.py --collect-all paddlepaddle --collect-all paddleocr --collect-all airtest --hidden-import=imghdr --hidden-import=scipy.io --collect-all paddleocr --collect-all pyclipper --collect-all imghdr --collect-all skimage --collect-all imgaug --collect-all scipy.io --collect-all lmdb --collect-all paddle