Commit f84988ab by Jordan Speicher Committed by Sébastien Eustace

Use 'python -m pip' to run pip (#716)

parent e30cd20b
...@@ -109,7 +109,7 @@ class PipInstaller(BaseInstaller): ...@@ -109,7 +109,7 @@ class PipInstaller(BaseInstaller):
raise raise
def run(self, *args, **kwargs): # type: (...) -> str def run(self, *args, **kwargs): # type: (...) -> str
return self._env.run("pip", *args, **kwargs) return self._env.run("python", "-m", "pip", *args, **kwargs)
def requirement(self, package, formatted=False): def requirement(self, package, formatted=False):
if formatted and not package.source_type: if formatted and not package.source_type:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment