From 202182a72cefce7b6fb6d091fbf6b7fa0b53c85d Mon Sep 17 00:00:00 2001 From: Tzu-ping Chung Date: Wed, 16 May 2018 02:07:16 +0800 Subject: [PATCH] Call virtualenv by module instead of command Fix #2196. --- pipenv/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pipenv/core.py b/pipenv/core.py index a8e00800e6..67c6dc47ab 100644 --- a/pipenv/core.py +++ b/pipenv/core.py @@ -890,7 +890,7 @@ def do_create_virtualenv(python=None, site_packages=False): # The user wants the virtualenv in the project. if project.is_venv_in_project(): cmd = [ - 'virtualenv', + sys.executable, '-m', 'virtualenv', project.virtualenv_location, '--prompt=({0})'.format(project.name), ]