1

After installing Anaconda in /opt/anaconda3 i modified ~/.bashrc for my user by adding PATH variable

# .bashrc

# Source global definitions
if [ -f /etc/bashrc ]; then
        . /etc/bashrc
fi

# Uncomment the following line if you don't like systemctl's auto-paging feature:
# export SYSTEMD_PAGER=

# User specific aliases and functions
export PATH="/opt/anaconda3/bin:$PATH"

But when I open terminal and type

conda list

I get

bash: conda: command not found

What could be the problem?

closed as off-topic by Kusalananda, Jeff Schaller, GAD3R, thrig, countermode Feb 18 '17 at 21:12

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions describing a problem that can't be reproduced and seemingly went away on its own (or went away when a typo was fixed) are off-topic as they are unlikely to help future readers." – Kusalananda, Jeff Schaller, GAD3R, thrig, countermode
If this question can be reworded to fit the rules in the help center, please edit the question.

  • 1
    Is the conda executable in /opt/anaconda3/bin? – Kusalananda Feb 18 '17 at 11:47
  • Thank you for the clue, in fact there is only plain file named 'conda', after cd to the location and typing 'conda' I get the same output. The problem is Continuum documentation says that PATH should point to this catalogue. docs.continuum.io/anaconda/install – kswr Feb 18 '17 at 12:07
  • Is the file executable? If it's a script, does it have a valid #!-line? – Kusalananda Feb 18 '17 at 12:26
  • Thank you for the answers, as it turned out, I just had to restart the terminal. I thought bashrc is reloaded instantly after modyfing, and restart is not necessary. Bests – kswr Feb 18 '17 at 13:19
  • No, it is only parsed once when the shell is initialized. – Kusalananda Feb 18 '17 at 13:19
-1

So as it turned out, I just had to restart terminal, or type source ~/.bashrc.

Not the answer you're looking for? Browse other questions tagged or ask your own question.