Python Package Managers pip, poerty

some oppeneons https://www.reddit.com/r/Python/comments/uxcsa1/poetry_over_pip/ https://stackoverflow.com/questions/53835198/integrating-python-poetry-with-docker

pip / pipx

pip list –outdated

source: https://www.activestate.com/resources/quick-reads/how-to-update-all-python-packages/

flit

poetry

  • poetry - is still using pip.

  • Pertry to existing projects

https://python-poetry.org/docs/basic-usage/

Important commands

poetry show --tree
poetry add sqlalchemy
poetry add zope.sqlalchemy

poetry show --latest
poetry show --outdated

Upgrade dependencies use

poetry show --latest
poetry show --outdated
poetry update

About perty.lock

https://python-poetry.org/docs/basic-usage/#:~:text=To%20update%20to%20the%20latest,file%20and%20running%20install%20again.)

Publish to privat repository

https://medium.com/packagr/publishing-to-a-private-python-repository-with-poetry-23b660484471

fixes:

curl -sSL https://install.python-poetry.org | python3 -
export PATH="/home/vavvav/.local/bin:$PATH"
poertry shell

remove poerty installed this way

rm -R ~/.local/share/pypoetry/
rm -R ~/.local/bin/poerty

Note

poerty virtual env takes 77mb localy more disk space after clean up caches etc. du -h test/ is the user with was created and takes 77mb after installing poerty.

I’m still happy with pip for the moment.