# py **Repository Path**: RongAndy/py ## Basic Information - **Project Name**: py - **Description**: python - **Primary Language**: Python - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-04-13 - **Last Updated**: 2026-02-06 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # py #### 介绍 python #### 软件架构 软件架构说明 #### python配置镜像源 ```shell 1. pip config set global.index-url https://mirrors.aliyun.com/pypi/simple 2. pip config get global.index-url ``` #### conda安装 地址:https://mirrors.tuna.tsinghua.edu.cn/help/anaconda/ ```shell 1. conda env list --查看所有conda环境 2. conda create -n py39 python=3.9 --创建conda环境 3. conda activate py39 --激活conda环境 4. conda env remove -n py39 --删除conda py39环境 5. conda list python --查看python版本 ``` #### python安装第三方库 ```shell 1. pip list --查看已安装的镜像 2. pip install pygame -- 安装pygame 3. pip uninstall pygame -- 删除pygame ``` #### python打包程exe文件 ##### 打包versa_tools.py ```shell # 安装pyinstaller 1. pip install pyinstaller # 进入项目目录 2. cd py # 打包 使用config的 3. pyinstaller --onefile --name "Versa工具箱" --add-data "config;config" --noconsole src/tk/versa_tools.py # 打包 使用env 的 3. pyinstaller --onefile --name "Versa工具箱" --noconsole src/tk/versa_tools.py ``` ##### 打包calc_nx.py ```shell # 安装pyinstaller 1. pip install pyinstaller # 进入项目目录 2. cd py # 打包 3. pyinstaller --onefile --name "NX交易养鸡器" .\src\tk\calc_nx.py # 打包 4. pyinstaller --onefile --name "dakai" --noconsole .\src\tk\start_and_stop_by_tkinter.py ```