You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
See the shell prompt doesn't show the active venv.
C:\project>pipenv shell
Creating a virtualenv for this project…
Using base prefix 'c:\\winpython35_x64\\python-3.5.2.amd64'
New python executable in C:\WinPython35_x64\settings\.virtualenvs\notes-ZJAFqFjp\Scripts\python.exe
Installing setuptools, pip, wheel...done.
Virtualenv location: C:\WinPython35_x64\scripts\..\settings\.virtualenvs\notes-ZJAFqFjp
Launching subshell in virtual environment. Type 'exit' to return.
Windows PowerShell
Copyright (C) 2016 Microsoft Corporation. All rights reserved.
PS C:\project>
Additional Info
I think this might be an issue with how powershell defines the prompt, but I haven't been able to determine for sure.
We all know how venv prepends the activated venv string to the prompt:
@dougthor42 This is because on windows, pipenv uses pew by default to manage getting into and out of virtualenv's. pew doesn't change the prompt for anyone, unix or windows user, it relies on having a properly configured shell that does it for you. The activation.bat file does modify the prompt but as I said windows pipenv doesn't source that when pipenv shell is run.
Summary
The current active venv is not prepended to the Powershell prompt on Windows.
Steps to Reproduce
Run
pipenv shell
in some Windows directorySee the shell prompt doesn't show the active venv.
Additional Info
I think this might be an issue with how powershell defines the prompt, but I haven't been able to determine for sure.
We all know how
venv
prepends the activated venv string to the prompt:CMD
Bash
Version Info
Related issues
The text was updated successfully, but these errors were encountered: