From 0bf898c0437a9af99bcddabc1cc0736092fd48f1 Mon Sep 17 00:00:00 2001 From: Arun Babu Neelicattu Date: Thu, 25 Mar 2021 23:57:09 +0100 Subject: [PATCH] pip installer: handle python 3.6 issues --- poetry/utils/pip.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/poetry/utils/pip.py b/poetry/utils/pip.py index d926ab1a5a7..61ae9be5145 100644 --- a/poetry/utils/pip.py +++ b/poetry/utils/pip.py @@ -43,7 +43,9 @@ def pip_install( try: return environment.run_pip(*args) except EnvCommandError as e: - if sys.version_info == (3, 6) and not is_wheel: + print("WE GOT EXCEPTION ") + if sys.version_info < (3, 7) and not is_wheel: + print("WE ARE IN ALTERNATE INSTALLATION") with ephemeral_environment( executable=environment.python, pip=True, setuptools=True ) as env: