Skip to content

Can't activate pipenv venv #5573

Answered by CVirus
CVirus asked this question in Troubleshoot
Sep 5, 2024 · 2 comments · 17 replies
Discussion options

You must be logged in to vote

I think I'm reaching the limits of my understanding of how shells work.

It seems that pipenv shell utilizes pexpect.spwan() to spawn a new shell for the venv and for some reason, this breaks things.
On the other hand, if I use pipenv shell --fancy, the venv is activated properly. --fancy utilizes subprocess.call() instead of pexpect.spwan().

@MrPaulAR Could you confirm that --fancy works for you?

I guess I'll leave it here for someone with more experience to pick it up in the future 🤷🏽

@JanDeDobbeleer Thank you for your patience.

Replies: 2 comments 17 replies

Comment options

You must be logged in to vote
17 replies
@CVirus
Comment options

@CVirus
Comment options

@CVirus
Comment options

@CVirus
Comment options

Answer selected by CVirus
@CVirus
Comment options

@MrPaulAR
Comment options

@CVirus
Comment options

@ovidiu
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working
5 participants
Converted from issue

This discussion was converted from issue #5572 on September 05, 2024 19:24.