# SQLModel教程 **Repository Path**: ryiot/sql-model-tutorial ## Basic Information - **Project Name**: SQLModel教程 - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-07-15 - **Last Updated**: 2024-07-15 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # SQLModel教程 ## 运行环境 ### 虚拟环境 ```bash # 创建虚拟环境 python3 -m venv venv # 激活虚拟环境(bash shell) source venv/bin/activate # 安装依赖 pip3 install -r requirements.txt # 退出虚拟环境 deactivate ``` ### pip3 源 ```bash # 查看pip源 pip3 config list # 使用阿里源 pip3 config set global.index-url https://mirrors.aliyun.com/pypi/simple/ ``` ### 导出依赖 ```bash # 生成 requirements.txt 文件 pip3 freeze > requirements.txt ``` # 使用清华源下载包 pip3 install sqlmodel