Search code examples
python-3.xpipenvvirtual-environment

Deactivate a pipenv environment


How can I deactivate my pipenv environment?

With other tools I've been able to do something like source deactivate, but that has no affect here.

Create an environment:

pipenv --three

Activate the environment:

source $(pipenv --venv)/bin/activate

But how to deactivate?


Solution

  • UPDATE: See other answers below. As it has been explained, this works for virtualenv, but pipenv works differently.

    Just type deactivate on the command line. See the guide here