pipenv : how to force virtualenv directory?

前端 未结 4 1154
小鲜肉
小鲜肉 2021-01-17 18:34

Actually, pipenv will install the virtualenv with a path like this :

$WORKON_HOME/-

Is it possible to have exac

4条回答
  •  滥情空心
    2021-01-17 19:02

    Apart from using a custom location, you can also install the virtualenv in your project's directory. Just add the following line in your .bashrc/.zshrc file:

    export PIPENV_VENV_IN_PROJECT=1
    

    Just wanted to let others know that there is another approach available too.

    Should you keep the virtualenv inside or outside the project's directory is an opinionated question afterall.

提交回复
热议问题