diff --git a/IPython/core/interactiveshell.py b/IPython/core/interactiveshell.py index dc3c726..c831aa4 100644 --- a/IPython/core/interactiveshell.py +++ b/IPython/core/interactiveshell.py @@ -932,7 +932,7 @@ class InteractiveShell(SingletonConfigurable): return if sys.platform == "win32": - virtual_env = Path(os.environ["VIRTUAL_ENV"], "Lib", "site-packages") + virtual_env = str(Path(os.environ["VIRTUAL_ENV"], "Lib", "site-packages")) else: virtual_env_path = Path( os.environ["VIRTUAL_ENV"], "lib", "python{}.{}", "site-packages"