From fd90326fba567106ac666a88d4bc4b5ff96e7e6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Thu, 4 Feb 2016 13:55:42 +0100 Subject: [PATCH] Use [sys.executable, "-m", "pip"] for the CLI pip stuff too --- src/octoprint/cli/dev.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/octoprint/cli/dev.py b/src/octoprint/cli/dev.py index 3f7269fc..1f383d11 100644 --- a/src/octoprint/cli/dev.py +++ b/src/octoprint/cli/dev.py @@ -204,11 +204,6 @@ class OctoPrintDevelCommands(click.MultiCommand): return command def plugin_uninstall(self): - from octoprint.util.pip import PipCaller - pip_command = PipCaller.autodetect_pip() - if pip_command is None: - return - @click.command("uninstall") @click.argument("name") def command(name): @@ -220,7 +215,7 @@ class OctoPrintDevelCommands(click.MultiCommand): click.echo("This doesn't look like an OctoPrint plugin name") sys.exit(1) - call = [pip_command, "uninstall", "--yes", name] + call = [sys.executable, "-m", "pip", "uninstall", "--yes", name] self.command_caller.call(call) return command