specs#

#

RequirementsSpec

从 requirements.txt 文件读取依赖项

YamlFileSpec

函数#

get_spec_class_from_file(→ FileSpecTypes)

从提供的 filename 确定要使用的 spec 类

detect(→ SpecTypes)

返回要使用的适当的 spec 类型。

属性#

deprecated#
exception EnvironmentFileExtensionNotValid(filename, *args, **kwargs)#

基类:CondaEnvException

所有非退出异常的通用基类。

初始化 self。有关准确的签名,请参阅 help(type(self))。

exception EnvironmentFileNotFound(filename, *args, **kwargs)#

基类:CondaEnvException

所有非退出异常的通用基类。

初始化 self。有关准确的签名,请参阅 help(type(self))。

exception SpecNotFound(msg, *args, **kwargs)#

基类:conda.CondaError

所有非退出异常的通用基类。

初始化 self。有关准确的签名,请参阅 help(type(self))。

CONDA_SESSION_SCHEMES#
class RequirementsSpec(filename=None, name=None, **kwargs)#

从 requirements.txt 文件读取依赖项,并从中返回一个 Environment 对象。

property environment#
msg#
extensions#
_valid_file()#
_valid_name()#
can_handle()#
class YamlFileSpec(filename=None, **kwargs)#
property environment#
_environment#
extensions#
can_handle()#
FileSpecTypes#
get_spec_class_from_file(filename: str) FileSpecTypes#

从提供的 filename 确定要使用的 spec 类

引发:

EnvironmentFileExtensionNotValid | EnvironmentFileNotFound --

detect(name: str | None = None, filename: str | None = None, directory: str | None = None) SpecTypes#

返回要使用的适当的 spec 类型。

引发: