# python_code_transaction **Repository Path**: enzoism/python_code_transaction ## Basic Information - **Project Name**: python_code_transaction - **Description**: LLM针对本地代码文件夹进行翻译 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-12-04 - **Last Updated**: 2025-12-21 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 1-Python开发环境 ## 1-UV环境搭建 > 本地项目直接拷贝,直接执行:uv sync ``` # 1-查看并指定Python版本环境 uv python list uv python pin 3.12.0 # 2-创建项目 uv init python_uv && cd python_uv # 3-指定本地虚拟环境 uv venv && source .venv/bin/activate # 4-安装本地依赖 uv pip install python-dotenv pydantic langchain-openai # 5-使用UV添加依赖包 uv add python-dotenv pydantic ``` ---- ## 2-init_uv_shell.sh脚本 > 已有项目,使用git命令执行以下命令,完成环境的初始化 ```shell sh init_uv_shell.sh ```