# PyQt5 **Repository Path**: groupWZQ/py-qt5 ## Basic Information - **Project Name**: PyQt5 - **Description**: 我的PyQt5项目 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-02-06 - **Last Updated**: 2025-07-02 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README #环境安装 ## 安装Python虚拟环境(如果你还没有安装) python3 -m pip install --user virtualenv ## 创建一个新的虚拟环境 python3 -m virtualenv venv # 激活虚拟环境 ## 在Windows上使用 venv\Scripts\activate ## 在Unix或MacOS上使用 source venv/bin/activate ## 在虚拟环境中安装PyQt5 pip install PyQt5 # 运行 python3 main.py # 打包 pyinstaller --onefile --windowed qmain.py # 生成虚拟环境安装包依赖列表 pip freeze > requirements.txt pip install -r requirements.txt # git ignore 问题 ## 问题描述 .gitignore 文件已经存在,但仍然跟踪某些文件,可能是因为 Git 缓存了之前的决定。你可以通过以下命令清除 Git 的缓存: ## 解决方案 ```markdown git rm -r --cached . git add . git commit -m "Update gitignore" ``` 最后使用命令 `git status` 命令检查文件状态,确保文件没有被跟踪。 # Failed to start powershell.exe 的解决 1、pycharm 设置-终端 修改powershell路径 2、帮助-编辑自定义虚拟机 打开后添加 -Dcom.pty4j.windows.disable.bundled.conpty=true