Python Forum
How to deactivate correctly a conda environment - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: How to deactivate correctly a conda environment (/thread-38603.html)



How to deactivate correctly a conda environment - NoNameoN - Nov-03-2022

Hello everybody i'm trying to deactivate correctly my conda environment that is setted by default in every terminal session that i open.
As you can see in the following image i opened a terminal and i must do conda deactivate to use it without the environment... how can i remove this default option?

[Image: Screenshot-from-2022-11-03-16-22-20.png]


RE: How to deactivate correctly a conda environment - snippsat - Nov-03-2022

It can have been set in .bashrc,where can set variables, functions and aliases every time open new Terminal.
Do this:
vim ~/.bashrc
# If not familiar with <vim> use a editor you know
gedit ~/.bashrc
Search for conda activate code,and remove it,
Restart Terminal to check.


RE: How to deactivate correctly a conda environment - NoNameoN - Nov-04-2022

(Nov-03-2022, 03:58 PM)snippsat Wrote: It can have been set in .bashrc,where can set variables, functions and aliases every time open new Terminal.
Do this:
vim ~/.bashrc
# If not familiar with <vim> use a editor you know
gedit ~/.bashrc
Search for conda activate code,and remove it,
Restart Terminal to check.
Thanks, it worked :-)