I've just got a backend repository to launch locally. It uses poetry for the dependencies and has this specified python = ">=3.7,<3.8".
python -V-> Python 2.7.16python3 -V-> Python 3.8.5which python-> /usr/local/bin/pythonwhich python3-> /usr/local/bin/python3
I've installed pyenv using brew and installed 3.7.8 (which is now visible when running pyenv versions).
Running poetry shell throws me:
The currently activated Python version 3.8.5 is not supported by the project (>=3.7,<3.8).
And when trying to poetry env use 3.7.8 it returns:
/bin/sh: python3.7: command not found
My question is – how can I setup python3.7 command on my macOS?