Show More
@@ -66,11 +66,12 b' class PackagingMagics(Magics):' | |||||
66 | Usage: |
|
66 | Usage: | |
67 | %pip install [pkgs] |
|
67 | %pip install [pkgs] | |
68 | """ |
|
68 | """ | |
|
69 | python = sys.executable | |||
69 | if " " in sys.executable: |
|
70 | if " " in sys.executable: | |
70 | if sys.platform == "win32": |
|
71 | if sys.platform == "win32": | |
71 |
python = "\"" + |
|
72 | python = "\"" + python + "\"" | |
72 | else: |
|
73 | else: | |
73 |
python = shlex.quote( |
|
74 | python = shlex.quote(python) | |
74 |
|
75 | |||
75 | self.shell.system(" ".join([python, "-m", "pip", line])) |
|
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