# Python Multi-version Support


{{< info >}}
This feature is supported for the Profiles versions 0.10.8, 0.11.5, 0.12.0, and all versions after 0.12.0.
{{< /info >}}

You can constraint your Profiles project to run only on specific version(s) by specifying it in the [`pb_project.yaml`]({{< ref "profiles/dev-docs/pb-project-yaml/" >}}) file, under the `python_requirements` key.

For example, the following snippet pins your project to v0.16.0:

```pb_project.yaml
python_requirements:
  - profiles-rudderstack==0.16.0
```

Use the following snippet to stay on any patch release within the 0.24 minor line (between 0.24.0 inclusive and 0.25.0 exclusive):

```pb_project.yaml
python_requirements:
  - profiles-rudderstack>=0.24.0,<0.25.0
```

If you do not specify any version in [`pb_project.yaml`]({{< ref "profiles/dev-docs/pb-project-yaml/" >}}), the latest Profiles version is used by default. The version constraints follow the same syntax as those of [Python dependency specifiers](https://packaging.python.org/en/latest/specifications/dependency-specifiers/).

{{< warning >}}
Make sure that the version of Profiles project is the same in your environment and the [`pb_project.yaml`]({{< ref "profiles/dev-docs/pb-project-yaml/" >}}) file. Otherwise, RudderStack will throw an error.
{{< /warning >}}

