From 1ff79911a021fdf5b81f9343f414a18367e6b78b Mon Sep 17 00:00:00 2001 From: Tzu-ping Chung Date: Fri, 9 Mar 2018 13:52:07 +0800 Subject: [PATCH] Consider py.exe when detecting wrong versions Related to #1620, I feel this is a nice addition. --- pipenv/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pipenv/core.py b/pipenv/core.py index 9c5a4c29..7971b338 100644 --- a/pipenv/core.py +++ b/pipenv/core.py @@ -625,7 +625,7 @@ def ensure_project(three=None, python=None, validate=True, system=False, warn=Tr # Warn users if they are using the wrong version of Python. if project.required_python_version: - path_to_python = which('python') + path_to_python = which('python') or which('py') if path_to_python and project.required_python_version not in (python_version(path_to_python) or ''): click.echo(