With the release of version 4.6.2 of the studio, pip dependencies can optionally have a version specifier.

{
"path": "kitchen",
"version": "<=1.1.5, >=1.1.1"
}

If no version is provided, the latest version is used. Since this was how the version was selected prior to this feature, this feature is backwards compatible. See pep 440 for the version specifier syntax:

Some Python packages can only be installed using apt. For these dependencies, the user must create a new list in the spec just for apt dependencies. Additionally, it is best to load apt dependencies prior to pip dependencies as the dependencies from apt are often required by libraries in pip. Below is an example with both pip and apt dependencies: