Why does #39;(base)#39; appear in my anaconda command prompt?(为什么(base) 出现在我的 anaconda 命令提示符中?)
问题描述
我的 anaconda 命令提示符现在显示:
My anaconda command prompt now says:
(base) C:usersuser_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:usersuser_name> deactivate
C:usersuser_name>
问题是这个提示不能识别 pip 或任何 anaconda 命令.我可以在base"提示符下运行 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
in '(base)..' 给出了 Anaconda 的 4.4 版本.没有基础,它就无法识别 conda.在这发生之前,我已经多次运行 pip 和 conda .我正在运行 Windows 10.
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 命令提示符中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:为什么'(base)' 出现在我的 anaconda 命令提示
基础教程推荐
- 无法导入 Pytorch [WinError 126] 找不到指定的模块 2022-01-01
- 求两个直方图的卷积 2022-01-01
- Plotly:如何设置绘图图形的样式,使其不显示缺失日期的间隙? 2022-01-01
- 包装空间模型 2022-01-01
- 使用大型矩阵时禁止 Pycharm 输出中的自动换行符 2022-01-01
- PermissionError: pip 从 8.1.1 升级到 8.1.2 2022-01-01
- 在Python中从Azure BLOB存储中读取文件 2022-01-01
- 修改列表中的数据帧不起作用 2022-01-01
- PANDA VALUE_COUNTS包含GROUP BY之前的所有值 2022-01-01
- 在同一图形上绘制Bokeh的烛台和音量条 2022-01-01
