modulenotfounderror: no module named conda error if Anaconda Environment is either not properly installed or underline python is incompatible. The best solution for this error is to remove or uninstall the current Anaconda distribution and reinstall the same. After this, we can update all the packages. It will fix the error if the error is because of the python version update internally with conda.
modulenotfounderror: no module named conda (Solution) –
We will fix this modulenotfounderror error step-wise. In each step, we will address the platform issues associated with it. The first step will be to remove the current Anaconda.
Step 1: Removing Current Anaconda –
If currently you are on the windows platform and you have to uninstall the current Anaconda package. For this, you need to go to Control Panel -> Programs -> Uninstall a Program here you can select Anaconda and uninstall the same.
Please run the below command to uninstall Anaconda distribution.
rm -rf ~/anaconda3
rm -rf ~/.condarc ~/.conda ~/.continuum
Step 2: Reinstalling Anaconda –
For installing the Anaconda package we can download the package from its official website. Here we will get different packaging for different platforms.
Step 3: Updating Underline package –
After installing successfully Anaconda package you need to upgrade the underline package. Here is the command for the same.
conda update --all
Step 4: Setting up the path externally –
In some cases, the path is misconfigured or not properly set. This optional step and on the basis of the current platform you can set the path.
Windows: Go to Environment Variable and then add the
Linux – Run the below command –
Alternative: If you are using conda as a third-party package –
If we are using conda as a third-party package then we have to ignore the above steps and run the below command. It will install conda package’s latest version.
pip install conda-env
Data Science Learner Team
Join our list
Subscribe to our mailing list and get interesting stuff and updates to your email inbox.