Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 [email protected]) => The command "self" does not exist.

What am I doing wrong here?

like image 524
Ian Avatar asked Jan 31 '26 01:01

Ian


1 Answers

One can downgrade (or upgrade) poetry through poetry self update command.

So, you can downgrade to 1.2.1 by running:

poetry self update 1.2.1
like image 166
Xavi Moreno Avatar answered Feb 03 '26 09:02

Xavi Moreno



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!