[英]Can I have multiple django projects in the same virtualenv folder
Another newbie to django here. django的另一个新手在这里。 I was wondering if it is recommended/not-recommended to run two different projects in the same virtualenv folder that have the same django version. 我想知道是否建议/不建议在具有相同Django版本的同一virtualenv文件夹中运行两个不同的项目。 To be more clear, is it necessary to create separate virtualenv everytime I want to start a new project when i know that i am using same django version for all projects. 更清楚地说,当我知道我为所有项目使用相同的Django版本时,是否每次我要启动新项目时都必须创建单独的virtualenv。 I am using python django on OSX. 我在OSX上使用python django。
It really depends on the situation. 这真的取决于情况。 Suppose if your Project A need to use Pip version 17.01 to run while your project B need to use Pip version 18.01 to run. 假设您的项目A需要使用Pip版本17.01来运行,而项目B需要使用Pip版本18.01来运行。 So It is not possible to use 1 virtual env to run multiple project but the downside of having multiple virtual environments is it consume much space & resource of PC. 因此,不可能使用1个虚拟环境来运行多个项目,但是拥有多个虚拟环境的不利之处在于它会占用PC的大量空间和资源。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.