Deactivate a pipenv environment

前端 未结 5 521
情歌与酒
情歌与酒 2021-02-01 16:03

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.

C

5条回答
  •  遥遥无期
    2021-02-01 16:23

    To elaborate on Williams' answer a bit more, the expected workflow is to enter the virtualenv using pipenv shell. When you activate the virtualenv that way, the console output now indicates to use exit:

    Spawning environment shell (/bin/zsh). Use 'exit' to leave.

    Trying to exit the virtualenv with deactivate will leave pipenv in a confused state because you will still be in that spawned shell instance but not in an activated virtualenv.

提交回复
热议问题