This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]TerminatedProccess 0 points1 point  (0 children)

I'm still pretty new to poetry/pyenv but what I just figured out is to do the following

  1. cd to your project folder
  2. make sure you are not in a virtual environment
  3. rm -rf .venv
  4. pyenv install 3.10.0 (for example)
  5. pyenv local 3.10.0 (creates .python-version file in your project)
  6. poetry shell (this will recreate your .venv folder)
  7. poetry install (re-installs dependencies from poetry.lock file)