diff --git a/conda_lock/conda_lock.py b/conda_lock/conda_lock.py index 72ad841d..460dc5a0 100644 --- a/conda_lock/conda_lock.py +++ b/conda_lock/conda_lock.py @@ -36,6 +36,7 @@ import yaml from ensureconda.api import ensureconda +from ensureconda.resolve import platform_subdir from typing_extensions import Literal from conda_lock.click_helpers import OrderedGroup @@ -947,8 +948,6 @@ def _render_lockfile_for_install( lock_content = parse_conda_lock_file(pathlib.Path(filename)) - from ensureconda.resolve import platform_subdir - platform = platform_subdir() if platform not in lock_content.metadata.platforms: suggested_platforms_section = "platforms:\n- "