Private packages
Individual paid plans with private packages are a legacy offering from Anaconda.org that are no longer available. However, anyone who had private packages in the past still has the ability to have those hosted privately.
Making packages private
By default, all packages uploaded to Anaconda.org are accessible to anyone who has access to the repository.
As of August 30, 2023, only users with paid plans can mark their packages as private.
To mark packages uploaded to your user channel on Anaconda.org as private:
- Select the desired package.
- Navigate to the Settings tab.
- Select Admin in the sidebar.
- Select Private.
Other Anaconda.org users may access your private packages either with tokens or by logging in.
Accessing private packages with tokens
A token is a random alphanumeric string that is used to restrict and provide access to packages on a channel.
To make your private packages accessible with tokens, create an access token that includes the following scope for Anaconda Client:
Or, on Anaconda.org in the access settings, select Allow private downloads from conda repositories.
Using the token to access private packages
If you intend to install many packages from a private channel, you can include the channel in your .condarc
file. This will include the token any time you search for packages on that channel. To add a user channel to your .condarc
file from Anaconda Prompt (Terminal on macOS/Linux), run the following command:
You can also use the token to install packages without first adding the channel to your .condarc
file by using the channel’s full URL. In Anaconda Prompt (Terminal on macOS/Linux), run the following command:
Accessing a private package that has a label
To install a package from a channel using the token and label name:
Using the token to access private PyPI packages
Private PyPI packages can also be installed in the web UI:
Accessing private packages as a registered user
To make your private packages available to users who have logged in:
- Create an organization.
- Create a group (which can be read-only) in that organization.
- Add the desired users to the group.
- Upload the package to the organization, or transfer an existing package to the organization.
After you grant users access, other users can install your package using the web UI or Anaconda Client.
To install a package:
-
In a browser, navigate to the desired channel.
-
Open Anaconda Prompt (Terminal on macOS/Linux) and run the following command:
Was this page helpful?