diff --git a/news/5636.bugfix.rst b/news/5636.bugfix.rst new file mode 100644 index 00000000..816c058e --- /dev/null +++ b/news/5636.bugfix.rst @@ -0,0 +1 @@ +Fix import error in virtualenv utility for creating new environments caused by ``2023.3.18`` release. diff --git a/pipenv/utils/virtualenv.py b/pipenv/utils/virtualenv.py index c6a885ce..0bdc8fb0 100644 --- a/pipenv/utils/virtualenv.py +++ b/pipenv/utils/virtualenv.py @@ -254,7 +254,7 @@ def ensure_python(project, python=None): err=True, ) # check for python installers - from .installers import Asdf, InstallerError, InstallerNotFound, Pyenv + from pipenv.installers import Asdf, InstallerError, InstallerNotFound, Pyenv # prefer pyenv if both pyenv and asdf are installed as it's # dedicated to python installs so probably the preferred