# FT4222PyTool **Repository Path**: re-wi/FT4222PyTool ## Basic Information - **Project Name**: FT4222PyTool - **Description**: FT4222的工具通用Python控制程序 - **Primary Language**: Python - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 1 - **Created**: 2024-02-13 - **Last Updated**: 2025-04-11 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # FT4222PyTool ## 导出依赖文件 打开命令提示符,在某条路径下输入 ```shell script pip freeze > ./requirements.txt ``` ## 开发环境安装 ***- Windows and Linux -*** ``` pip install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com ``` ***- Arm Linux -*** ```shell sudo apt-get install python3-pyside6.qt sudo pip3 install loguru pyinstaller ``` ## PyCharm 配置 ```text pyside2Designer Arguments : $FilePath$ Working directory : $FileDir$ pyside2UIC Arguments : $FileName$ -o $FileNameWithoutExtension$_ui.py Working directory : $FileDir$ pyside2RCC Arguments : $FileName$ -o $FileNameWithoutExtension$_rc.py Working directory : $FileDir$ ``` ## 打包部署 ### 方式一:pyinstaller ```shell pip install pyinstaller -i https://pypi.douban.com/simple pyinstaller --name="FT4222PyTool" --windowed --onefile main.py ``` ### 方式二:pyside6-deploy - [pyside6-deploy: the deployment tool for Qt for Python](https://doc.qt.io/qtforpython-6/deployment/deployment-pyside6-deploy.html#pyside6-deploy) > -f/–force: When this option is used, it forces through all the input prompts. pyside6-deploy prompts the user to > create a Python virtual environment, if not already in one. With this option, the current Python environment is used > irrespective of whether the current Python environment is a virtual environment or not. ```shell pyside6-project -h pyside6-project deploy pyside6-deploy main.py pyside6-deploy XXX/XXX.py -c .\pysidedeploy.spec ``` ### 方式三:nuitka - [Qt for Python & Nuitka](https://doc.qt.io/qtforpython-6/deployment/deployment-nuitka.html#) ```shell python -m nuitka --standalone --plugin-enable=pyside6 main.py ``` ## 操作库相关 - [PySide6支持情况](https://wiki.qt.io/Main) - [代码仓库](https://gitlab.com/msrelectronics/python-ft4222) - [使用文档](https://msrelectronics.gitlab.io/python-ft4222/) ## 必须库 ### 图像渲染 ```shell pip install PyOpenGL PyOpenGL_accelerate -i https://pypi.douban.com/simple ```