Sometimes packages will not install as wanted (resulting in import errors, Anaconda Navigator is not behaving as expected or does not start up at all. This page summarizes remedies for such problems.
Conda environment creation never finishes¶
Phenomenon: creating a conda environment with and environment file (conda env create -f environment.yml) results in quasi-eternal loading without the environment being installed even after several hours.
Fix: Before creating the environment, set the installation priority to strict (answer adapted from https://
conda config --set channel_priority strictConda package installation fails¶
Phenomenon: Installation of a Python library or package through Anaconda Prompt fails.
Fix: Several reason may cause that installing new packages fails in Anaconda Prompt or Linux / macOS Terminal:
Make sure to close all Python-dependent applications (e.g., Jupyter or PyCharm) before installing.
Conflict solving activates:
Wait until conflicts are parsed (and solved)
Enter
conda update condaEnter
conda update anacondaRestart Terminal or Anaconda Prompt
Try to re-install the package prompted.
Anaconda Navigator does not start up¶
The most common problems for Anaconda not starting up are listed in the developer’s docs and include:
Delete a potentially corrupted
.condarcfile. To do that, open Anaconda Prompt (on Windows) or Terminal (on Linux or macOS) and enter:conda infoto learn where the.condarcfile is located (on Windows typicallyC:\Users\Username),Open the indicated directory (e.g., in Windows explorer),
Delete the
.condarcfile.
Try to launch Anaconda Navigator from Anaconda Prompt (or Linux / macOS Terminal) by entering
anaconda-navigator.Fix perfmission issues by deleting the
.continuumdirectory:Windows: Open Anaconda Prompt and run
rd /s .continuumLinux / macOS: Open Terminal and run
rm -rf ~/.continuum
Update Anaconda Navigator from Anaconda Prompt (or Linux / macOS Terminal) by entering
conda update anaconda-navigatorRe-install Anaconda Navigator from Anaconda Prompt (or Linux / macOS Terminal) by running:
conda remove anaconda-navigatorconda install anaconda-navigator
Reset Anaconda Navigator configuration from Anaconda Prompt (or Linux / macOS Terminal) by running
anaconda-navigator --reset(caution: this may be destructive).
Other, bug-fixes, not listed on the above-metioned developer’s website are:
Re-initialize conda from Anaconda Prompt (or Linux / macOS Terminal) by running
conda init. Then, close and re-open Anaconda Prompt (or Terminal).Update conda and Anaconda Navigator from Anaconda Prompt (or Linux / macOS Terminal) as root:
activate rootconda update -n root condaconda update --allconda update anaconda-navigator
Re-install PyQt5 from Anaconda Prompt (or Linux / macOS Terminal):
pip uninstall PyQt5pip install PyQt5pip install pyqtwebengine
Large storage size of Anaconda¶
The Anaconda base environment comes with many pre-installed packages and can be very storage intensive in the order of many gigabytes. Every new environment that is produced can take the same size and multiple conda environments may jam your hard disk. Again, there are some solutions:
Create light-weight environments with Miniconda.
Clean tarballs an unnecessary package installation files with Anaconda Prompt or Linux / macOS Terminal:
Aggressive cleanup:
conda clean --all(read more in the developer’s docs).Conservative cleanup:
conda clean -tipsy
Cannot find ... path¶
In Anaconda Prompt or Linux / macOS Terminal run conda init and restart the application.