Python
使用jinja2模板渲染sql脚本
poetry 新建项目并与 git 仓库关联
poetry 项目管理工具的使用
python通过jaydebeapi连接pg
sqlalchemy 数据库表映射到 model
python 生成指定区间的日期序列
本站点使用 MrDoc 构建
-
+
首页
poetry 项目管理工具的使用
## 安装 ```bash pip install poetry ``` ## 配置 ```bash # 此处直接修改 cache-dir 就会修改 cache-dir 和 virtualenvs.path 的路径 poetry config cache-dir /poetry_enev # 查看配置 poetry config --list # 恢复默认值 poetry config cache-dir --unset # 设置 pypi 源,--default 设置为默认源 # 中科大源 poetry source add ustc https://mirrors.ustc.edu.cn/pypi/web/simple/ --default # 清华源: poetry source add tsinghua https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple/ # 阿里源: poetry source add aliyun https://mirrors.aliyun.com/pypi/simple/ # 腾讯源: poetry source add tencent https://mirrors.cloud.tencent.com/pypi/simple/ ``` ## 新建项目 ```bash poetry new xxx # 或者 mkdir xxx && poetry init ``` ## 安装依赖包 ```bash poetry add xxx ``` ## 运行项目或文件 ```bash poetry run python run.py ```
vleity
2025年7月14日 12:54
转发文档
收藏文档
上一篇
下一篇
手机扫码
复制链接
手机扫一扫转发分享
复制链接
Markdown文件
PDF文档(打印)
分享
链接
类型
密码
更新密码