pyenv
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.
-
nodeVersions: (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.jsoncfile anywhere. - Open
codify.jsoncwith your file editor and paste in the follow configs.
[ { "type": "pyenv", "global": "3.12", "nodeVersions": [ "3.12" ] }]- Run
codify applyin the directory of the file. Open a new terminal and run the commandpython --versionto check that Python was installed. It should returnPython 3.12.2.
codify applyNotes:
This resource currently does not support virtual envs. This is something that will be added in the future.