Skip to content

Poetry shell Command Issue: "The command 'shell' does not exist" #109

@AngeloKiriakoulis

Description

@AngeloKiriakoulis

Problem

When using Poetry, the poetry shell command resulted in:

The command "shell" does not exist.

Cause

The shell command was moved to a plugin called poetry-plugin-shell. This plugin is not included in Poetry's core installation by default, leading to the error.

Solution

To resolve the issue, you need to install the poetry-plugin-shell plugin manually. Quoting Poetry's documentation:

The easiest way to install the shell plugin is via the self add command of Poetry.

poetry self add poetry-plugin-shell

If you used pipx to install Poetry you can add the plugin via the pipx inject command.

pipx inject poetry poetry-plugin-shell

Otherwise, if you used pip to install Poetry you can add the plugin packages via the pip install command.

pip install poetry-plugin-shell

How should we change the documentation, both in README.md and the Naptha website? Probably going to open a PR to address this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions