-1

I wanted to use anaconda python in Linux without adding it to path (I don't want to set is as default python).

I used to simply set an alias for commands that I use in .bashrc like alias condapython="~/anaconda3/bin/python". This is sometimes hard to use!

So I'm looking for another way. What I need is a command to run whenever I need to use anaconda.

Can I for example run source ~/anaconda3/bin/activate? I mean, is anaconda python nothing more than a virtual environment?
Or you suggest something else?

mokazemi
  • 58
  • 1
  • 6
  • 1
    _I wanted to use anaconda python in Linux without adding it to path (I don't want to set is as default python)._ Don't you have that option when installing Anaconda? – AMC Oct 18 '20 at 00:45
  • @AMC I have, but after that, how can I use it? – mokazemi Oct 18 '20 at 08:51

1 Answers1

0

After a default install, follow the directions on using conda init to configure your shell to use Conda. Then disable auto-activation of the base environment:

conda config —-set auto_activate_base false

This will let you use the system-level Python installation by default. You can use conda activate <env_name> to activate environments, or simply conda activate for the base environment.

merv
  • 67,214
  • 13
  • 180
  • 245
  • 1
    Thanks. it looks when anaconda environment is not activated, the only extra thing is path is just conda command. – mokazemi Oct 19 '20 at 10:02