1

My conda module is in the path '/opt/cloudera/parcels/Anaconda/bin'

In the .bash_profile I added the following:

PATH=$PATH:/opt/cloudera/parcels/Anaconda/bin
export PATH 

Yet when I type

conda --version 

I get

Traceback (most recent call last):
File "/opt/cloudera/parcels/Anaconda/bin/conda", line 4, in <module>
from conda.cli.main import main
ImportError: No module named conda.cli.main
anonymous
  • 405
  • 8
  • 22

2 Answers2

0

I show the ~/.zshrc ( or ~/.bash_profile ) which is the default shell in my Mac.

# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/opt/anaconda3/bin/conda' 'shell.bash' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
    eval "$__conda_setup"
else
    if [ -f "/opt/anaconda3/etc/profile.d/conda.sh" ]; then
        . "/opt/anaconda3/etc/profile.d/conda.sh"
    else
        export PATH="/opt/anaconda3/bin:$PATH"
    fi
fi
unset __conda_setup
# <<< conda initialize <<<

After installing Anaconda that is how it looks like. You can try source ~/.bash_profile or ~/zshrc to check if it base is activated by Anaconda.

If you want to deactivate base look at this

Mohan Radhakrishnan
  • 3,002
  • 5
  • 28
  • 42
-2

I followed the process in the continuum documentation and it worked. Please see: https://docs.continuum.io/anaconda/install/linux

anonymous
  • 405
  • 8
  • 22