# Since what version of DBT code was python\_version available as a Python model config option

**URL:** <https://discourse.getdbt.com/t/since-what-version-of-dbt-code-was-python-version-available-as-a-python-model-config-option/19770>\
**Category:** Help\
**Tags:** snowflake, dbt-core\
**Created:** [July 2, 2025, 7:20pm UTC](https://discourse.getdbt.com/t/since-what-version-of-dbt-code-was-python-version-available-as-a-python-model-config-option/19770 "2025-07-02T19:20:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kali.mist](https://sea2.discourse-cdn.com/flex020/user_avatar/discourse.getdbt.com/kali.mist/32/5814_2.png) [@kali.mist](https://discourse.getdbt.com/u/kali.mist)\
**Post date:** [July 2, 2025, 7:20pm UTC](https://discourse.getdbt.com/t/since-what-version-of-dbt-code-was-python-version-available-as-a-python-model-config-option/19770/1 "2025-07-02T19:20:55Z")

</div>

I need to set the python runtime version of my Python model to 3.11 as Snowflake now deprecates 3.8 and 3.8 seems still to be the default.  
Can the python\_version model config option be used to set the python version of a python model (i am getting conflicting info from LLMs) and can you tell me what version of dbt code this python\_version config option has been available since? I am stuck with 1.5.1 for the moment

```auto
def model(dbt, session):
    dbt.config(
        materialized = "table",
        python_version="3.11"
    )

```
