植入项目
对已存在的py
项目添加poetry
前置条件:
- 环境变量下已成功安装和使用
poetry
# cd 到项目目录
cd /d {peoject_dir}
# or
cd {peoject_dir}
# 加入poetry并指定python版
poetry init <project_name> --python "D:\CPS\python\Python378\python.exe"
# 安装 requirements.txt 依赖
poetry run pip install -r requirements.txt