Skip to content

How do I rename or move a directory managed by pipenv? #5123

Answered by J-M0
JDLH asked this question in Q&A
Discussion options

You must be logged in to vote

When pipenv creates an venv for your project, it creates a hash of the path of your project as part of the name of the venv; that's the 1E7o8dGZ in your Foo-1E7o8dGZ. If you rename the folder, pipenv will lose the connection to the venv and end up making a new one. To make sure you don't have an extra venv lying around, you can run pipenv --rm before renaming your project and then simply pipenv install to recreate it.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@JDLH
Comment options

@coolove
Comment options

Answer selected by matteius
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants