From 68a23d54bd033d8d72ff893fb8bcf89c625ae006 Mon Sep 17 00:00:00 2001 From: Luc Belliveau Date: Mon, 18 Sep 2017 12:24:34 -0300 Subject: [PATCH] Fix for virtualenv issue 596 (long path names) --- lib/virtualenv.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/virtualenv.js b/lib/virtualenv.js index 29350dc..dd05489 100644 --- a/lib/virtualenv.js +++ b/lib/virtualenv.js @@ -250,8 +250,8 @@ VirtualEnv.prototype._pip = function _pip(callback) { // Install Python dependencies into the virtualenv created in the create step. this._reportProgress("Installing", this._virtualenvHome); - var pipProc = childProcess.spawn("bin/pip", - ["install", "-r", this._requirements], + var pipProc = childProcess.spawn("bin/python", + ["-m", "pip", "install", "-r", this._requirements], {cwd: this._virtualenvHome} ); pipProc.stderr.pipe(this._stderr);