Skip to main content

find_environment

Function find_environment 

Source
pub fn find_environment(
    request: &PythonRequest,
    preference: EnvironmentPreference,
    python_preference: PythonPreference,
    python_arch: Option<PythonArchitecture>,
    cache: &Cache,
) -> Result<PythonEnvironment, Error>
Expand description

Find a PythonEnvironment matching the given request and preference.

If looking for a Python interpreter to create a new environment, use PythonInstallation::find instead.