From cab9e3066fedc09184f7ba3ef8a257634ed9e61c 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 #2194. --- 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), ]