poetry help env not working
kind/bugstatus/triage
### Description
# Description
When running `poetry help env` I just get an error stating that the command `help` does not exist:
```bash
$ poetry help env
The requested command help does not exist.
Did you mean one of these perhaps?
help: Displays help for a command.
Documentation: https://python-poetry.org/docs/cli/
```
The help for other commands works just fine, although I haven't tested them all:
```bash
$ poetry help list
Description:
Lists commands.
Usage:
list [options] [--] [<namespace>]
# ...
```
I checked various stuff, if it is running in a venv, I ran `pipx ensurepath`
# Expected behavior
Well `poetry help env` printing the help for that command, subcommands also don't work, e.g. `poetry help env use`
# System
It is a fresh install, printing the IMO relevant information below:
```bash
$ uname -a
*** 25.4.0 Darwin Kernel Version 25.4.0: Thu Mar 19 19:33:50 PDT 2026; root:xnu-12377.101.15~1/RELEASE_ARM64_T6050 arm64
$ python --version
Python 3.14.4
$ poetry --version
Poetry (version 2.3.4)
# installed via pipx
$ pipx --version
1.11.1
```
### Workarounds
n/a
### Poetry Installation Method
pipx
### Operating System
MacOS 26.4.1
### Poetry Version
2.3.4
### Poetry Configuration
```bash session
cache-dir = "/Users/***/Library/Caches/pypoetry"
data-dir = "/Users/***/Library/Application Support/pypoetry"
installer.max-workers = null
installer.no-binary = null
installer.only-binary = null
installer.parallel = true
installer.re-resolve = false
keyring.enabled = true
python.installation-dir = "{data-dir}/python" # /Users/***/Library/Application Support/pypoetry/python
requests.max-retries = 0
solver.lazy-wheel = true
system-git-client = false
virtualenvs.create = true
virtualenvs.in-project = null
virtualenvs.options.always-copy = false
virtualenvs.options.no-pip = false
virtualenvs.options.system-site-packages = false
virtualenvs.path = "{cache-dir}/virtualenvs" # /Users/***/Library/Caches/pypoetry/virtualenvs
virtualenvs.prompt = "{project_name}-py{python_version}"
virtualenvs.use-poetry-python = false
```
### Python Sysconfig
[python_sysconfig.txt](https://github.com/user-attachments/files/26983614/python_sysconfig.txt)
<details>
<summary>sysconfig.log</summary>
<!-- Please leave one blank line below for enabling the code block rendering. -->
```
Paste the output of 'python -m sysconfig', over this line.
```
</details>
### Example pyproject.toml
```TOML
[project]
name = "foobar"
version = "0.1.0"
description = "foobar"
authors = [
{name = "Helena Seidel",email = "helena.t.seidel@gmail.com"}
]
requires-python = ">=3.14"
dependencies = [
"matplotlib (>=3.10.8,<4.0.0)"
]
[build-system]
requires = ["poetry-core>=2.0.0,<3.0.0"]
build-backend = "poetry.core.masonry.api"
```
### Poetry Runtime Logs
<details>
<summary>poetry-runtime.log</summary>
<!-- Please leave one blank line below for enabling the code block rendering. -->
```
$ poetry -vvv help env
The requested command help does not exist.
Did you mean one of these perhaps?
help: Displays help for a command.
Documentation: https://python-poetry.org/docs/cli/
```
</details>
0 条评论