简体   繁体   English

Django 虚拟环境包装器

[英]Django virtual environment wrapper

I just started learning django and kept wondering, do I need to install a virtual environment wrapper everytime I want to start a project before creating the virtual environment?我刚开始学习 django 并一直想知道,每次我想在创建虚拟环境之前启动项目时,是否需要安装虚拟环境包装器? or is the virtual environment wrapper already installed in my system and I just have to go straight to creating the virtual environment?或者虚拟环境包装器是否已经安装在我的系统中,我只需要 go 直接创建虚拟环境? These are the commands I used for creating my virtual environment这些是我用于创建虚拟环境的命令

//creating the virtual environment wrapper
pip install virtualenvwrapper-win
//creating a virtual environment called test
mkvirtualenv test
//installing django
pip install django
//creating my project folder
mkdir project

for short project i think is not necessary.对于短期项目,我认为没有必要。

A virtual environment is a tool that helps to keep dependencies required by different projects separate by creating isolated python virtual environments for them.虚拟环境是一种工具,通过为不同项目创建隔离的 python 虚拟环境来帮助保持不同项目所需的依赖关系。

but if i wanna answer your question: i should to say YES, every time you need to create this.但如果我想回答你的问题:我应该说是,每次你需要创建这个。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM