Skip to content
bash
poetry init

This command will guide you through creating your pyproject.toml config.

Package name [EroEroBot]:
Version [0.1.0]:
Description []:
Author [GraiaCommunity <example@graiax.cn>, n to skip]:  n  # 注意,这里要你自己填写 n
License []:
Compatible Python versions [^3.9]:

Would you like to define your main dependencies interactively? (yes/no) [yes] n  # 注意,这里要你自己填写 n
Would you like to define your development dependencies interactively? (yes/no) [yes] n  # 注意,这里要你自己填写 n
Generated file

[tool.poetry]
name = "EroEroBot"
version = "0.1.0"
description = ""
authors = ["GraiaCommunity <example@graiax.cn>"]

[tool.poetry.dependencies]
python = "^3.9"

[tool.poetry.dev-dependencies]

[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"


Do you confirm generation? (yes/no) [yes] y  # 注意,这里要你自己填写 y
toml
[[tool.poetry.source]]
# 这里以清华源举例,你也可以使用其他源
name = "tuna-tsinghua"
url = "https://pypi.tuna.tsinghua.edu.cn/simple"
default = false
bash
 poetry env use python3.9
Creating virtualenv eroerobot-IQ6eRJio-py3.9 in /Users/lijing/Library/Caches/pypoetry/virtualenvs
Using virtualenv: /Users/lijing/Library/Caches/pypoetry/virtualenvs/eroerobot-IQ6eRJio-py3.9

Released under the MIT License.