kedro.framework.cli.utils.get_pkg_version¶
- kedro.framework.cli.utils.get_pkg_version(reqs_path, package_name)[source]¶
从requirements.txt文件中获取包版本。
- Parameters:
- Return type:
- Returns:
requirements.txt 中指定的包及其版本。
- Raises:
KedroCliError – 如果在
reqs_path中指定的文件不存在, 或者在该文件中未找到package_name。