python
pyenv
A reference page for the pyenv resource
The pyenv resource reference. This resource installs pyenv, a python version manager that allows you to switch between multiple versions of Python.
Parameters:
-
global: (string) The global version of python to use.
-
pythonVersions: (array[string]) Python versions to be installed.
Example usage:
[
{
"type": "pyenv",
"global": "3.12",
"pythonVersions": [
"3.9.6", "3.12"
]
}
]Setting up Python
Create a
codify.jsonc file anywhere.Open
codify.jsonc with your file editor and paste in the follow configs.[
{
"type": "pyenv",
"global": "3.12",
"pythonVersions": [
"3.12"
]
}
]Run
codify apply in the directory of the file. Open a new terminal and run the command python --version
to check that Python was installed. It should return Python 3.12.2.codify applyNotes:
This resource currently does not support virtual envs. This is something that will be added in the future.