Hacker News new | ask | show | jobs
by claytonjy 1326 days ago
Pyenv works well, I just wish Poetry did that for me. Instead Poetry will gladly ignore a set pyenv unless you force it to pay attention.
1 comments

My workaround for that is to initialize every checked-out copy like so:

    pyenv install -s
    pyenv exec pip install poetry
    pyenv exec poetry install
That incantation goes into my README.md.

Inconvenient, but I’ve come to accept it. I only need to run it after initial checkout and when the .python-version changes.

Interesting! I like managing poetry at the user level with pipx, so my usual incantation is

    pyenv local 3.11.0
    poetry init
    poetry env use $(pyenv which python)
    poetry install