诗歌尝试将项目文件夹安装为依赖项:EnvCommandError

时间:2020-01-24 20:23:32

标签: python python-poetry

我正在尝试运行poetry install命令,但出现以下错误:

[EnvCommandError]
Command ['pip', 'install', '-e', '<PROJECT_FOLDER_PATH>'] errored with 
the following return code 1, and output: 
Obtaining file:///<PROJECT_FOLDER_PATH>
ERROR: Package '<subfolder>' requires a different Python: 3.6.8 not in '>=3.7,<4.0'

我的包含.toml文件的项目目录被标记为<PROJECT_FOLDER>PROJECT_FOLDER_PATH则是完整路径),并且包含<subfolder>

我的toml文件的一部分:

[tool.poetry]
name = "<PROJECT_FOLDER>"
version = "0.1.0"
description = ""
authors = ["Your Name <you@example.com>"]

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

似乎诗歌试图将项目本身安装为依赖项,但是由于某种原因,我不明白这似乎是矛盾的Python版本。我暂时通过设置python = "^3.6"来解决它,但是现在问题又回来了,因为我需要一些只接受python = "^3.7"的软件包。

0 个答案:

没有答案