diff --git a/IPython/core/magics/packaging.py b/IPython/core/magics/packaging.py index 3b84698..e20eb0c 100644 --- a/IPython/core/magics/packaging.py +++ b/IPython/core/magics/packaging.py @@ -69,7 +69,7 @@ class PackagingMagics(Magics): python = sys.executable if " " in python: if sys.platform == "win32": - python = "\"" + python + "\"" + python = '"' + python + '"' else: python = shlex.quote(python)