pipenv : how to force virtualenv directory?

前端 未结 4 1201
小鲜肉
小鲜肉 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 18:59

    There is an undocumented feature of pipenv, it could locate virtualenv path from VIRTUAL_ENV environment variable, but you need to create virtualenv manually:

    virtualenv /home/user/myapp_venv
    VIRTUAL_ENV=/home/user/myapp_venv pipenv install
    

提交回复
热议问题