T. Moore
T. Moore

Reputation: 73

Pipenv shell command creates new venv instead of loading existing

I have been successfully using a virtual environment created by pipenv for months, located at ~/.virtualenvs. However, today when I tried to activate it using "pipenv shell" (while in the proper directory) pipenv creates a new .venv file in the current directory instead of loading the environment from ~/.virtualenvs. My main concern is: how do I redirect pipenv to the existing virtual environment? Out of curiosity, any ideas about what could suddenly cause this behavior?

Upvotes: 2

Views: 1468

Answers (1)

sahasrara62
sahasrara62

Reputation: 11247

just go to that project/venv bin folder and then do source activate it will as activate as it is just a wrapper around virtualenv

Upvotes: 2

Related Questions