为什么'(base)'出现在我的anaconda命令提示符中? [英] Why does '(base)' appear in my anaconda command prompt?

查看:565
本文介绍了为什么'(base)'出现在我的anaconda命令提示符中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的anaconda命令提示符现在显示:

My anaconda command prompt now says:

(base) C:\users\user_name>

我想知道为什么(base)出现在提示的前面.自从我创建了运行Django的虚拟环境以来,这种现象就开始出现了.如果我输入停用",则提示消失,但如果我关闭终端并打开新终端,则基座"又回来了.

I would like to know why (base) appears in front of the prompt. This started appearing since I created a virtual environment to run Django. If I enter 'deactivate' the prompt disappears but if I close the terminal and open a new terminal the 'base' is back again.

(base) C:\users\user_name> deactivate
C:\users\user_name>

问题在于此提示无法识别pip或任何anaconda命令.我可以在基本"提示符下运行pip,但不能在原始提示符下运行.我使用pip在'(base)...'中安装了一个模块,但是我的ide可以识别该模块.

The trouble is that this prompt does not recognize pip or any anaconda commands. I can run pip on the 'base' prompt, but not on the original one. I installed a module in '(base)...' using pip but this module is recognized by my ide.

conda list anaconda

'(base)..'中的

给出Anaconda的第4.4版.没有基础,就无法识别conda.在发生这种情况之前,我已经跑了几次pip和conda.我正在运行Windows10.

in '(base)..' gives th version of Anaconda as 4.4. without the base, it does not recognize conda. I have run pip and conda several times before this happened. I'm running Windows 10.

推荐答案

尝试一下:

conda config --set auto_activate_base false

changeps1仅隐藏命令提示符,您仍处于此环境中.

The changeps1 only hide the command prompt, you still in this environment.

auto_activate_base可以避免进入环境.

这篇关于为什么'(base)'出现在我的anaconda命令提示符中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆