Add conda to my environment variables or path?

19,817

You can access to conda and pip directly in their directory :

  • On Windows : $ANACONDA_INSTALL_DIR\Scripts, you will find conda.exe and pip.exe
  • On Linux : $ANACONDA_INSTALL_DIR/bin, there are conda and pip executable files.

Where $ANACONDA_INSTALL_DIR is the directory of your Anaconda installation.

To add Anaconda to your path, you can add this folder to your PATH. For Linux, you can add this line to yout .bashrc file

export PATH=$ANACONDA_INSTALL_DIR/bin:$PATH

As said @BcK, reinstalling Anaconda and choosing to add Anaconda to your path is also a way to do this. This option makes a backup of your .bashrc file and add the export line.

Share:
19,817
Emiliano Tonizzo
Author by

Emiliano Tonizzo

Updated on June 04, 2022

Comments

  • Emiliano Tonizzo
    Emiliano Tonizzo almost 2 years

    I am having trouble adding conda to my environment variables on windows. I installed anaconda 3 though I didn't installed python, so neither pip or pip3 is working in my prompt. I viewed a few post online but I didn't find anything regarding how to add conda to my environment variables.

    I tried to create a PYTHONPATH variable which contained every single folder in Anaconda 3 though it didn't worked.

    My anaconda prompt isn't working too. :(

    so...How do I add conda and pip to my environment variables or path ?

    • BcK
      BcK almost 6 years
      What do you mean by My anaconda prompt isn't working too ? That might be showing a reinstall is needed. By the way, isn't there a checkbox when installing anaconda to add it to your path ?