I wish that I new about pyenv when I started to programming in Python.
This tool makes it easy to manage and switch between different Python versions and environments.
curl https://pyenv.run | bash
pyenv is available on your machine you can easily create a new virtual Python environment for your next project:
pyenv virtualenv 3.10.0 my_new_project
This will create a new environment named,
my_new_project, that is using the version 3.10.0 of Python.
And to activate the environment:
pyenv activate my_new_project
There are many more features provided by the
pyenv-tool that can be explored, read more at GitHub.