question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`pip shell` doesn't prepend virtualenv name to bash prompt

See original GitHub issue

For bash shell, when I try activating virtualenv by pip shell, it doesn’t prepend virtualenv name before bash prompt.

$ # Global pip
$ pip freeze | wc -l
61
$ pipenv shell
Spawning environment shell (/bin/bash).
$ pip freeze
$ # Means we are inside virtualenv as there is no package
$ which python
/XXXXXX/.venv/bin/python
$ source .venv/bin/activate
(playpipenv) $ 

It might be my bashrc. Will wait till anyone confirms it. Thanks

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:18 (11 by maintainers)

github_iconTop GitHub Comments

3reactions
mcdevittscommented, Mar 19, 2018

In windows prompt, no name is appended even when -c is used.

1reaction
spiliopouloscommented, Jan 23, 2017

@jessebraham Well I don’t know why you get two new lines after the Spawning statement. However, the printed source statement should be expected.

Read more comments on GitHub >

github_iconTop Results From Across the Web

virtualenv name not show in zsh prompt - Stack Overflow
First add virtualenv dependency under plugin in file .zshrc If this doesn't work for you, then it means that the theme(one of oh-my-zsh...
Read more >
How to display the name of the current Virtualenv?
In venv created by virtualenvwrapper, the bin/activate script contains code to pre-pend the venv name to both zsh and bash prompts! – Erikw....
Read more >
Pipenv: Python Dev Workflow for Humans - Read the Docs
It automatically creates and manages a virtualenv for your projects, as well as adds/removes packages from your Pipfile as you install/uninstall packages.
Read more >
Configure a Pipenv environment | PyCharm Documentation
If you skip this procedure, PyCharm will prompt you to specify the path to the pipenv executable when adding a pipenv environment. Windows....
Read more >
Can't see python virtual environment name in bash prompt ...
When it is active, I mean after exec bash , if I create a virtual environment with virtualenv venv and subsequently activate it...
Read more >

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found