Receiving a 403 Forbidden error from an Anaconda channel
Cause
A 403 Forbidden error occurs when you attempt to access a resource you don’t have permissions for—such as a channel, package, or API endpoint.
The 403 error you are receiving may look like the following:This error is likely because your token is invalid or expired, but can also be because Anaconda is blocking your access because of a potential terms of service violation.
The 403 error you are receiving may look like the following:
Solution
Run
If the 403 Forbidden error persists, ensure you are not blocked by a Terms of Service violation by consulting our Terms of Service error page.
If you believe you have been blocked in error, please open a support ticket.
anaconda token install to issue and set a new token for yourself, then try again.If the 403 Forbidden error persists, ensure you are not blocked by a Terms of Service violation by consulting our Terms of Service error page.
If you believe you have been blocked in error, please open a support ticket.
Receiving a 429 error from conda
Cause
A 429 error message occurs when you need to register your conda client.
Solution
To clear the error and restore your connection, register your conda client.
Environment creation failing due to strict policy filter
Cause
Implementing strict policy filters with no exceptions can cause essential package dependencies to be filtered out of your repository. Without these packages, commands like
If you are attempting to create a new environment, but your build is failing due to package conflicts or unavailable packages, it’s likely due to your channel’s strict policy filter.
conda create --name <ENV_NAME> python=3.11 fail.If you are attempting to create a new environment, but your build is failing due to package conflicts or unavailable packages, it’s likely due to your channel’s strict policy filter.
Solution
If you’re an organization member, you can request that your organization’s administrator add package exceptions to your channel’s policy filter, but you’ll need to know which packages are causing problems first.
To perform this test, you’ll need a channel that has no policy filter applied to it. Create the channel in your organization and name it
With your quarantine channel created and added to yourFor example, if you are trying to test building an environment from the snakes channel, the command would be:Packages retrieved from the
To perform this test, you’ll need a channel that has no policy filter applied to it. Create the channel in your organization and name it
quarantine. Once created, add it to your .condarc file. For help adding a channel to your .condarc file, see Channels.With your quarantine channel created and added to your
.condarc file, you can run the following command:Replace <ENV_NAME> with a test environment name (this is not permanent).
Replace <CHANNEL> with your channel name.
Replace <CHANNEL> with your channel name.
Example command
The ordering of
snakes and quarantine is essential. Conda will attempt to solve the environment in the order the channels are listed, so quarantine must be listed last.Example command return
quarantine channel are the packages that need to be considered for exceptions in the policy filter.