我一直在用诗歌来管理我的项目。最近我重构了我的项目。现在,当我尝试向该项目添加依赖项时,出现以下错误。
$poetry add loguru
Using version ^0.5.2 for loguru
Updating dependencies
Resolving dependencies... (0.0s)
[InvalidRequirement]
Invalid requirement, parse error at "'fantasy '"
这是我的pyproject.toml
[tool.poetry]
name = "Global Fantasy League"
version = "0.1.0"
description = ""
authors = ["Pravesh Chapgain<spravesh1818@gmail.com>"]
[tool.poetry.dependencies]
python = "^3.8"
asyncpg = "^0.21.0"
psycopg2 = "^2.8.6"
alembic = "^1.4.2"
pre-commit = "^2.7.1"
[tool.poetry.dev-dependencies]
pytest = "^5.2"
mypy = "^0.782"
[build-system]
requires = ["poetry>=0.12"]
build-backend = "poetry.masonry.api"
我们将不胜感激。
答案 0 :(得分:1)
我认为您的项目名称不能包含空格。
尝试
[tool.poetry]
name = "global-fantasy-league"
相反。