We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3033923 commit be23be5Copy full SHA for be23be5
1 file changed
install-poetry.py
@@ -294,6 +294,11 @@ def bin_path(self):
294
@classmethod
295
def make(cls, target: Path) -> "VirtualEnvironment":
296
try:
297
+ # on some linux distributions (eg: debian), the distribution provided python
298
+ # installation might not include ensurepip, causing the venv module to
299
+ # fail when attempting to create a virtual environment
300
+ # we import ensurepip but do not use it explicitly here
301
+ import ensurepip # noqa: F401
302
import venv
303
304
builder = venv.EnvBuilder(clear=True, with_pip=True, symlinks=False)
0 commit comments