Where should virtualenvs be created?

前端 未结 5 1260
情深已故
情深已故 2020-11-28 01:31

I\'m confused as to where I should put my virtualenvs.

With my first django project, I created the project with the command

django-admin.py startproj         


        
5条回答
  •  栀梦
    栀梦 (楼主)
    2020-11-28 02:09

    If you use pyenv install Python, then pyenv-virtualenv will be a best practice. If set .python-version file, it can auto activate or deactivate virtual env when you change work folder. Pyenv-virtualenv also put all virtual env into $HOME/.pyenv/versions folder.

提交回复
热议问题