I'm new to poetry
and I've searched around, but apologies if I've missed something obvious..
pyproject.toml
)poetry shell
or poetry install
, maybe in conjunction with poetry env use
) that puts me into an environment that uses the python version I specified above (I don't mind if it's a few commands instead of just one)poetry env use 3.10
(when I don't have python 3.10 installed already)
/bin/sh: python3.10: command not found
poetry
install python 3.10 in this casepoetry env use 3.10
(when I'm in a conda
env that has python 3.10 installed)
python
executeable is symlinked to the one in the conda envpoetry
instead of conda
so I'd like to avoid relying on conda
to install python versionsUse poetry
in conjunction with pyenv
(where pyenv
is used to install the python version).
Is using something like pyenv
to install python versions necessary? Is there no way to tell poetry
that I want it to install a given python version?
I've looked through the poetry
docs, their GH issues, and some SO posts, but (again) apologies if I'm missing something.
poetry
version: 1.1.13poetry
(and therefore the one it seems to default to): 3.7.6Poetry cannot and will not install any python interpreter for you. This is out of scope. It's the responsibility of the user to provide one.
pyenv
is one way of doing it.