Source

tox / tox / _venv.py

Diff from to

File tox/_venv.py

         self._pcall(argv, cwd=self.envconfig.envlogdir)
 
     def pip_install(self, args, indexserver=None, action=None):
-        argv = ["pip", "install"] + self._commoninstallopts(indexserver)
+        # win32
+        if sys.platform == "win32":
+            argv = ["pip"]
+        else:
+            argv = [
+                self.getsupportedinterpreter(),
+                str(self.envconfig.envbindir.join("pip")),
+            ]
+        argv.append("install")
+        argv += self._commoninstallopts(indexserver)
         if self.envconfig.downloadcache:
             self.envconfig.downloadcache.ensure(dir=1)
             argv.append("--download-cache=%s" %