Downgrade poetry version

Question:

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?

Asked By: Ian

||

Answers:

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'
Answered By: ZAVERI SIR

I made sure to run terminal as administrator
I then install poetry 1.2.2 with the command

pip install poetry=="1.2.2"

it installed successfully, then installed the "1.2.1" version with:

pip install poetry=="1.2.1"

The new install with a lower version automatically removed the version="1.2.2".

after you install what you need, i recommend you restart your terminal before running anything python. Maybe that will help.

if the above does not work, uninstall all poetry related packages then reinstall the 1.2.1 version.

Answered By: Mubarak Salley

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
Answered By: Xavi Moreno
Categories: questions Tags: ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.