Search code examples
pythonpython-poetry

Downgrade poetry version


I need to downgrade my version of poetry to version 1.2.1.

Currently, it's 1.2.2.

>>> poetry --version
Poetry (version 1.2.2)

I use the following command:

>>> curl -sSL https://install.python-poetry.org | POETRY_VERSION=1.2.1 python3 -
Retrieving Poetry metadata

The latest version (1.2.1) is already installed.

But I'm told that 1.2.1 is already installed. Yet the poetry version is still stuck on the original.

>>> poetry --version
Poetry (version 1.2.2)

The answer given here doesn't work (poetry self update@1.2.1) => The command "self" does not exist.

What am I doing wrong here?


Solution

  • if you want to install specific version in python hereit is ,

    pip install poetry==1.2.1
    

    In Future just simplpe

    pip install 'Your Library Name'== 'Specific version'