Deactivate a pipenv environment

前端 未结 5 519
情歌与酒
情歌与酒 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:19

    Please check this topic for answer from contributor perspective:

    https://github.com/pypa/pipenv/issues/84#issuecomment-275056943

    Spoiler :

    pipenv starts a new shell session with the virtualenv pathing instead of changing the pathing in the current shell session. That is why deactivate does not work. you need to exit the shell session. the exit command or CTRL-d will do the trick.

提交回复
热议问题