You are viewing documentation for an older version.
Python Multi-version Support
less than a minute
This feature is supported for the Profiles versions 0.10.8, 0.11.5, 0.12.0, and all versions after 0.12.0.
You can constraint your Profiles project to run only on specific version(s) by specifying it in the pb_project.yaml file, under the python_requirements key.
For example, the following snippet pins your project to v0.23.0:
python_requirements:
- profiles-rudderstack==0.23.0Use the following snippet to stay on any patch release within the 0.23 minor line (between 0.23.0 inclusive and 0.24.0 exclusive):
python_requirements:
- profiles-rudderstack>=0.23.0,<0.24.0If you do not specify any version in pb_project.yaml, the latest Profiles version is used by default. The version constraints follow the same syntax as those of Python dependency specifiers.
Make sure that the version of Profiles project is the same in your environment and thepb_project.yamlfile. Otherwise, RudderStack will throw an error.