我有一个基于 Python 2.7 和 Python 3.9 的项目。
我正在使用以下 pyproject.toml:
[build-system]
requires = ["poetry_core>=1.1.4"]
build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "MyProject"
version = "1.0.0"
description = ""
authors = [""]
readme = ""
repository = ""
homepage = ""
[tool.poetry.dependencies]
python = ">=2.7"
bcrypt = "*"
pywin32 = [
{version = "228", python = "^2.7"},
{version = "300", python = "^3.0"},
]
执行时,进程永远poetry update
停留在原处。"Resolving dependencies..."
如果我用它替换python依赖python = "^2.7"
项(但不能在python 3上安装),并且如果我用它替换python = "^3.0"
它也可以(但不能在python 2上安装)。
我应该怎么办 ?