問題描述
我的 anaconda 命令提示符現(xiàn)在顯示:
My anaconda command prompt now says:
(base) C:usersuser_name>
我想知道為什么 (base) 會出現(xiàn)在提示符前面.這開始出現(xiàn),因為我創(chuàng)建了一個虛擬環(huán)境來運行 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.在這發(fā)生之前,我已經(jīng)多次運行 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
只是隱藏命令提示符,你還在這個環(huán)境中.
The changeps1
only hide the command prompt, you still in this environment.
auto_activate_base
可以避免進入環(huán)境.
這篇關于為什么'(base)' 出現(xiàn)在我的 anaconda 命令提示符中?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!