Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I am getting no module name cleo when trying to do "poetry add"

I have completely uninstalled and re installed poetry using:

POETRY_UNINSTALL=1 bash -c 'curl -sSL https://raw.githubusercontent.com/sdispater/poetry/master/get-poetry.py | python'

then I re installed it using:

curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python -

but it did not fix the issue. and then I # for poetry config

export PATH="$HOME/.poetry/bin:$PATH"
like image 668
Shelly Avatar asked Dec 15 '25 00:12

Shelly


2 Answers

You just need to re-install poetry

# install
curl -sSL https://install.python-poetry.org | python3 -
# update
poetry self update
# uninstall
curl -sSL https://install.python-poetry.org | python3 - --uninstall
like image 52
Mehdi Avatar answered Dec 16 '25 23:12

Mehdi


This command fixed it for me (OSX):

rm -rf ~/.poetry

I think it gets your local files in a muddle!

Be careful running this in your user folder!

like image 34
ackroyd Avatar answered Dec 16 '25 22:12

ackroyd



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!