Python Forum
How to deactivate correctly a conda environment
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to deactivate correctly a conda environment
#1
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]
Reply
#2
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.
NoNameoN likes this post
Reply
#3
(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 :-)
snippsat likes this post
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Confused over Conda Package manager vs PIP JanOlvegg 3 1,232 Mar-09-2023, 02:09 PM
Last Post: JanOlvegg
  SSL error while trying to update conda ilango 0 2,185 Nov-04-2021, 08:38 AM
Last Post: ilango
  Error: How to to close and restart your shell after running 'conda init' angelica 3 10,284 May-27-2020, 10:00 AM
Last Post: snippsat
  Creating Conda env from requirments.txt file ErnestTBass 7 15,759 Apr-23-2020, 06:57 PM
Last Post: snippsat
  Installing a new package using pip in conda environment firebolt7 1 2,536 Nov-18-2019, 12:31 PM
Last Post: snippsat
  deactivate compatibility pop up with excel files Krszt 0 1,928 Mar-19-2019, 06:39 AM
Last Post: Krszt
  Auto activate conda env in Pycharm terminal ntuttle 0 4,782 Mar-08-2019, 03:56 PM
Last Post: ntuttle
  sys library and how to import using conda michavardy 0 2,501 Feb-26-2019, 08:25 AM
Last Post: michavardy
  Installing blpapi in two different conda environments snicolaou 0 4,013 Jan-09-2018, 02:12 PM
Last Post: snicolaou
  How to update pymqi version from conda ? tracy786 2 3,635 Dec-30-2017, 01:09 PM
Last Post: snippsat

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020