Cause
.condarc
on either the Pro (legacy) or Business tier, in some cases you may be unable to install packages. You may receive an error message that the channel or package is unavailable or missing.Solution
Cause
Solution
https://repo.anaconda.com/main
and https://repo.anaconda.com/r
(as well as https://repo.anaconda.com/msys2
for Windows operating systems).
conda-token
tool by running the following command:
Cause
Solution
conda-token
by running the following command:Cause
auto_activate_base
to false
.Solutions
~/.zshrc
file (in macOS) or ~/.bashrc
file (in Linux). When you “source” a script, your terminal re-reads it and applies the changes, which usually only happens when the terminal is first opened..sh
installer (~/anaconda3/
), your command would look like the following:auto_activate_base
, run the following command:false
, this means that conda is not automatically activating your base environment when you start a new shell. This behavior emulates your system Python, and some users prefer to have their conda environment be inactive until they need it. However, this is not conda’s default behavior after installation.To change the value of auto_activate_base
, run the following command:auto_activate_base
set as false
, the conda command will still be available as a shell function, but your base environment will not be active when a new shell is started. To activate your base environment, run conda activate
.conda update anaconda
command does not install the latest version of the anaconda
metapackageanaconda
metapackage was removed from Anaconda Distribution installers in February of 2023 and no longer appears in your base
environment by default. This troubleshooting topic assumes you are working with package incompatibilities in an environment containing the anaconda
metapackage.Cause
conda update anaconda
updates the Anaconda metapackage to the latest compatible version. Keep in mind this might not be the latest version.Solution
conda update anaconda
or conda install anaconda=2023.07
.
2023.07
with the latest version number.n
to cancel the installation or update.
anaconda
metapackage, oranaconda
metapackage.anaconda
metapackage:anaconda
metapackage itself by running the following command:
anaconda
metapackage:anaconda
metapackage:
Solution
conda list
to view the packages from the previous installation.conda info -e
to list the environments created in the previous installation, which are now available in the new installation.Cause
.condarc
file has been added to the root folder of your Anaconda Distribution and Miniconda installations. This file has a channels:
list that contains either:defaults
channel.condarc
files together in specific ways. For more information on how conda uses your .condarc
files, see the Searching for .condarc section of the official conda documentation.All channels:
lists in your .condarc
files are merged together when conda searches for packages. This causes the Anaconda default URLs to be appended to (added to the end of) your channels:
list.Solution
.condarc
files influencing your currently active conda environment, run the following command:.condarc
file locations and their contents..condarc
file should be in the folder where you installed Anaconda Distribution or Miniconda, most likely similar to one of the following:.condarc
file:If you have write access to the installation directory .condarc file
Add defaults to the installation directory .condarc file (Recommended)
defaults
to configure your channels, you should edit the installer root .condarc
file to use defaults
as well..condarc
file using conda config --show-sources
.
.condarc
file’s channels:
list, then remove the hardcoded URLs.
You can edit the files manually using your preferred text editor, or by using the following conda CLI command:
--file
flag to specify the path to the root .condarc
file.Example commands
defaults
and want to change the URLs it points to, use default_channels
in your .condarc
file. For more information on this setting, see default_channels: Default channels in the official conda documentation.You can edit your .condarc
manually using your preferred text editor, or by using the following conda CLI command:--add
with --remove
.Delete the installation directory .condarc file
.condarc
file (whether you use defaults
or not), you can also delete the installation directory .condarc
file..condarc
file with a channels:
list defined. Conda requires this to function..condarc
file using conda config --show-sources
.
.condarc
file. This is a hidden file on macOS and Linux and is not visible in file browsers under normal circumstances.
You can view hidden files and folders using the following guidance for your operating system:
If you have write access to the installation directory .condarc file
defaults
channels and cannot edit or remove the installation directory .condarc
file (for example, you installed on macOS using the graphical installer without sudo
access):--override-channels
flag with every conda command that installs or updates packages.--channel
(or -c
) flag..condarc
files and only use the channels you explicitly specify to install or update packages and their dependencies.Solution
.condarc
file, located in the user’s home directory. This information should be made available by your IT team and may contain a username and password that is included in the URL. For more information, see configure conda for use behind a proxy server.Example .condarc
file configuration:HTTP_PROXY
and HTTPS_PROXY
environment variables.Cause
InsecurePlatformWarning
appears only when the installed version of Python is older than version 2.7.9. This message warns only that the validity of the SSL connection is not being verified. It should not affect your package downloads.Solution
ndg-httpsclient
:Cause
anaconda-client
is not installed and you search for a package on anaconda.org using the Anaconda search command…Solution
anaconda-client
by running the following command:
Cause
Solution
conda
user guide.Cause
Solution
libpython
, a mingw import library that Anaconda builds and includes with the Anaconda Distribution.Cause
Solution
Solution
force_32bit
is not recommended because it forces 32-bit packages to be installed in the environment, but does not force 32-bit libraries to load at runtime.force_32bit
should be used only when running conda-build
to build 32-bit packages on a 64-bit system.Cause
Solution
.pkg
installer, you may encounter this error during the “Installation” step:
Cause
Solution
install.log
file, which can be found at /var/log/install.log
.Cause
Solution
conda install anaconda
again. Conda only downloads the packages that were not finished in any previous attempts.Cause
Solution
--force
or -f
option by running the following command:Cause
.pkg
installer, you may see this message at the end of the installation:/var/log/install.log
file and check whether the most recent lines show errors following a call to conda init --all
.
$HOME
directory, check whether the owner of your shell config files is root
:
Solution
Cause
Solution
$PYTHONPATH
environment variable, if applicable, and re-install Anaconda.Other potential solutions are covered in the “Conflicts with system state” section of the following blog post.Solution
Cause
Solution
Cause
.spyder2
, .ipython
, .matplotlib
, and .astropy
remain. Depending on your version of Windows, these may be in C:\Documents and Settings\<USERNAME>
or in C:\Users\<USERNAME>
.<USERNAME>
with your Windows username as it appears in the Documents and Settings
or Users
folder.Solution
Cause
Solution
.spyder2
and then repeat the first item in this list. Depending on your version of Windows, .spyder2
may be in C:\Documents and Settings\<USERNAME>
or in C:\Users\<USERNAME>
.
<USERNAME>
with your Windows username as it appears in the Documents and Settings
or Users
folder.Cause
Solution
anaconda3
or miniconda3
installation folders and run the .exe
file uninstaller from that location. Uninstallation will complete without prompting for administrative privileges.EXAMPLE: If you installed Miniconda3, the uninstall file will be Uninstall-Miniconda3.exe
. Users who installed Miniconda2 or Anaconda will find a similar file with the appropriate name.Cause
Solution
Solution
Cause
.zshrc
file), your zsh shell will be unable to use conda commands properly.Solution
.sh
installer (~/miniconda3/
), the command would be:
python3-config
to determine a linking command line to compile an extension module will cause that extension module to segfault upon import. python3-config
does provide command-line flags, but for the different purpose of embedding a Python interpreter.
Cause
python3-config
. Before Python 3.8, those are needed to embed the core Python interpreter into a different project altogether and not those that should be used when linking a Python extension module.Python modules should never link to the core Python interpreter library directly, either statically at build time or dynamically at runtime. This is because the Python executable itself provides all the necessary functions and symbols.Solution
python*-config --ldflags
when linking to an interpreter library (either static or shared).Action | Python < 3.8 | Python >= 3.8 |
---|---|---|
Get command line to link to extension module | python -c "import sysconfig; print(sysconfig.get_config_var('LDSHARED'))" | python3-config --ldflags |
Get command line to embed Python interpreter | python3-config --ldflags | python3-config --ldflags --embed |
python3-config
doesn’t include the command/compiler name, whereas the sysconfig way does. This works provided none of your arguments have spaces:import numpy
fails, the system is likely missing the libgomp
system library.
Cause
libgomp
, but some may not.Solution
libgomp
by running the following command:libgomp.so.1
is listed in the not found:
section, it must be installed.Install libgomp
on Ubuntu by running the following command:libgomp
on Red Hat Enterprise Linux (RHEL) or CentOS by running the following command:Cause
Solution
Cause
conda-package-streaming
requires certain encoding variables that fresh installations of Linux may not have properly set, causing an ASCII error and a failed installation of Anaconda Distribution.Solution
.bashrc
or .zshrc
):
Cause
anaconda-navigator
package and the anaconda-toolbox
package. (Each package lists incompatible versions of anaconda-cloud-auth
as a dependency.)Solution
anaconda-toolbox
package, open Anaconda Prompt (Terminal on macOS/Linux) and run the following command:anaconda-navigator
and anaconda-toolbox
:y
to approve the package changes.
Cause
.condarc
file.Solution
.condarc
file and restart Navigator..condarc
file.
Open Anaconda Prompt (Terminal on macOS/Linux) and enter the command conda info
. The output will tell you the location of your .condarc
file(s). You can also search for “.condarc” on your computer.
The .condarc
file is frequently found in:
/Users/<USERNAME>
~/.condarc
C:\\Users\\<USERNAME>
.condarc
file before it was corrupted, save the information to add that configuration back to the new file.
.condarc
file.
Cause
Solution
.continuum
. To delete the .continuum
directory, open Anaconda Prompt (Terminal on macOS/Linux) and run the following command, depending on your operating system:
Cause
Solution
Cause
Solution
Cause
.condarc
file, or an unknown issue.Solution
.condarc
file is not corrupt. Specifically confirm that your channel settings contain defaults
.
Solution
logged_api_url
, anaconda_server_token
, and anaconda_server_token_id
in the Navigator config file (anaconda-navigator.ini
) to None.
team_edition_token
to anaconda_server_token
and team _edition_token_id
to anaconda_server_token_id
as of Version 2.4.0. If you downgrade your Navigator application to a version older than 2.3.0, you will need to manually change these variable names back to their older versions within your anaconda-navigator.ini
file..condarc
).
Cause
C:\\Users\\User\\AppData\\Local\\Programs\\Microsoft VS Code
C:\\Program Files\\Microsoft VS Code
/usr/share/code
/Applications
Solution
/.continuum/anaconda-client/config.yaml
).
Cause
anaconda-client
being installed with admin rights. This will lead to incorrect user permissions for the anaconda-client
config file.Solution
.config.yaml
file to a different location..continuum
folder..config.yaml
file back into /.continuum/anaconda-client
.Cause
Solution
Cause
Solution
Cause
Solution
Cause
defaults
is missing from your channels listSolution
defaults
is missing from your channels listNot having defaults
added to your channels list can also cause Navigator’s Update popup to fail to appear.defaults
to your channels list:defaults
, then press Enter (Windows)/Return (Mac) on your keyboard.Cause
Solution
Cause
anaconda upload
command.Solution