pipenv shell does not work in powershell ISE

abc 1 Reputation point
2021-11-18T10:06:47.503+00:00

I can run powershell ISE, and navigate to a folder where a pipenv is set up, e.g. if I run pipenv --venv I get a valid path to the virtual environment, but when I run pipenv shell, I get,

pipenv : Launching subshell in virtual environment...
At line:1 char:1

  • pipenv shell
  • ~~~~~~~~~~~~
  • CategoryInfo : NotSpecified: (Launching subsh... environment...:String) [], RemoteException
  • FullyQualifiedErrorId : NativeCommandError

Microsoft Windows [Version 10.0.19043.1348]
(c) Microsoft Corporation. All rights reserved.

and nothing else. Does anyone else see this? I've tried running powershell ISE normally and as the administrator, with the same result.

Windows for business Windows Server User experience PowerShell
{count} votes

2 answers

Sort by: Most helpful
  1. Rich Matheisen 47,901 Reputation points
    2021-11-18T15:22:51.08+00:00

    PowerShell ISE is no longer a supported product. It will continue to function but there will be no further development or fixes.

    Have you tried using another ISE? have a look at VS Code.

    0 comments No comments

  2. Shawn Melton 11 Reputation points
    2021-11-18T17:34:39.527+00:00

    The host that you get in PowerShell ISE (powershell_ise.exe) is not the same as the PowerShell.exe, therefore you can get different results. I would expect the shell that is being created from pipenv just can't be handled in ISE.

    The general recommendation is to use PowerShell.exe instead when running commands or code. I'd note as well if you do go with using VS Code that the integrated terminal for the PowerShell extension may have issues as well, instead use the VS Code Terminal which would be the formal PowerShell.exe host.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.