Python 命令提示符和 anaconda 提示符之间的区别

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/37993175/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-19 20:11:52  来源:igfitidea点击:

difference between command prompt and anaconda prompt

pythoncommand-promptanaconda

提问by Michael Li

I installed anaconda into my computer using python. After I install the software, I found there is one program called anaconda prompt.

我使用 python 将 anaconda 安装到我的计算机中。安装软件后,我发现有一个程序叫做anaconda prompt。

What is the difference between anaconda prompt and command prompt? If I want to update the package, which one I should use or either one. Like (conda update conda)

anaconda 提示符和命令提示符有什么区别?如果我想更新包,我应该使用哪一个或任何一个。喜欢(conda 更新 conda)

Thank you

谢谢

回答by Dylan Orzel

Anaconda command prompt is just like command prompt, but it makes sure that you are able to use anaconda and conda commands from the prompt, without having to change directories or your path.

Anaconda 命令提示符就像命令提示符一样,但它确保您能够从提示符使用 anaconda 和 conda 命令,而无需更改目录或路径。

When you start Anaconda command prompt, you'll notice that it adds/("prepends") a bunch of locations to your PATH. These locations contain commands and scripts that you can run. So as long as you're in the Anaconda command prompt, you know you can use these commands.

当您启动 Anaconda 命令提示符时,您会注意到它向您的 PATH 添加/(“前置”)了一堆位置。这些位置包含您可以运行的命令和脚本。因此,只要您在 Anaconda 命令提示符下,您就知道可以使用这些命令。

During the installation of Anaconda there is a choice to add these to the PATH by default, and if checked you can also use these commands on the regular command prompt. But the anaconda prompt will always work.

在安装 Anaconda 期间,默认情况下可以选择将这些添加到 PATH,如果选中,您还可以在常规命令提示符下使用这些命令。但是 anaconda 提示将始终有效。

As far as updating conda, if it doesn't work in command prompt, you can do

至于更新 conda,如果它在命令提示符下不起作用,你可以这样做

conda update conda

in Anaconda command prompt.

在 Anaconda 命令提示符下。