##// END OF EJS Templates
Default branch added
Artur Svistunov -
Show More
@@ -66,11 +66,12 b' class PackagingMagics(Magics):'
66 66 Usage:
67 67 %pip install [pkgs]
68 68 """
69 python = sys.executable
69 70 if " " in sys.executable:
70 71 if sys.platform == "win32":
71 python = "\"" + sys.executable + "\""
72 python = "\"" + python + "\""
72 73 else:
73 python = shlex.quote(sys.executable)
74 python = shlex.quote(python)
74 75
75 76 self.shell.system(" ".join([python, "-m", "pip", line]))
76 77
General Comments 0
You need to be logged in to leave comments. Login now