简体   繁体   English

是克隆的Conda环境,类似于Python虚拟环境

[英]Is a cloned Conda environment similar to a Python virtual environment

Is a cloned Conda environment similar to a Python Virtual Environment?克隆的 Conda 环境是否类似于 Python 虚拟环境?

conda create --clone arcgispro-py3 --name  arcgispro-py3_clone

Or are there any benefits to create a Visual Environment for this cloned environment?或者为这个克隆环境创建视觉环境有什么好处吗?

I think I understand what you're asking.我想我明白你在问什么。 "virtual environment" when it comes to python usually refers to python environments created using virtualenv specifically.谈到 python 时,“虚拟环境”通常指的是专门使用virtualenv创建的 python 环境。 You could consider conda environments "virtual environments" as well, but that just gets confusing to refer to them that way and people don't do that.您也可以将 conda 环境视为“虚拟环境”,但这样称呼它们只会让人感到困惑,而人们不会那样做。 Say "conda environment".说“康达环境”。

Conda is its own environment and package manager, it can be used in place of virtualenv in a lot of cases. Conda 是它自己的环境和包管理器,在很多情况下可以用来代替 virtualenv。 As with most things with overlapping (and largely incompatible) use, there are pros and cons to using one over the other.与大多数重叠(并且在很大程度上不兼容)使用的东西一样,使用一个比另一个有利也有弊。 Since I don't know your use case, I don't know which might be right for you.因为我不知道你的用例,所以我不知道哪个可能适合你。

You shouldn't create a virtual environment from your conda environment.您不应该从 conda 环境创建虚拟环境。 That would probably just cause a mess down the road.那可能只会在路上造成混乱。 Either use a system python to create a virtualenv or use conda to create a conda environment, I don't recommend mixing them.要么使用系统 python 创建 virtualenv,要么使用 conda 创建 conda 环境,我不建议混合使用它们。

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

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