close

[Solved] After Anaconda installation, conda command fails with “ImportError: no module named conda.cli”

Hello Guys, How are you all? Hope You all Are Fine. Today I get the following error After Anaconda installation, conda command fails with “ImportError: no module named conda.cli” in python. So Here I am Explain to you all the possible solutions here.

Without wasting your time, Let’s start This Article to Solve This Error.

How After Anaconda installation, conda command fails with “ImportError: no module named conda.cli” Error Occurs?

Today I get the following error After Anaconda installation, conda command fails with “ImportError: no module named conda.cli” in python.

How To Solve After Anaconda installation, conda command fails with “ImportError: no module named conda.cli” Error ?

  1. How To Solve After Anaconda installation, conda command fails with “ImportError: no module named conda.cli” Error ?

    To Solve After Anaconda installation, conda command fails with “ImportError: no module named conda.cli” Error Alternatively, the conda install could be cloned to another location, such as the user's home directory:

  2. After Anaconda installation, conda command fails with “ImportError: no module named conda.cli”

    To Solve After Anaconda installation, conda command fails with “ImportError: no module named conda.cli” Error Alternatively, the conda install could be cloned to another location, such as the user's home directory:

Solution 1

When you were installing it, you missed a section. When conda asked you if it can set your .bashrc file, you probably clicked NO. It’s a simple fix: fire up your interpreter and add this line:

export PATH=/home/add your username here/anaconda/bin:$PATH

Now type python into the interpreter and you will see Anaconda 1.8.0 or whatever version you have. You will have to do this each time you start a new interpreter.

Enjoy!

Solution 2

If anaconda was installed by the root user, a permissions issue could produce the ImportError: No module named 'conda.cli' error.

Something like this

sudo chown -R [username] [anaconda_dir]

would help in that case.

Alternatively, the conda install could be cloned to another location, such as the user’s home directory:

conda create -n [my_conda_root] --clone=[current_conda_dir]

But for this to work, you will need at least the read and traverse permissions.

Summery

It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you? Thank You.

Also, Read