You can use Anaconda Client command line interface (CLI) to:
- Connect to and manage your Anaconda.org account.
- Upload packages you have created.
- Generate access tokens to allow access to private packages.
NOTE: Client is not necessary to search for and download packages.
Option 1, conda:
conda install anaconda-client
Option 2, pip:
pip install anaconda-client
Option 3, installing with pip from source:
pip install git+https://github.com/Anaconda-Platform/anaconda-client
After installing, view the complete list of Client tasks with this command:
Searching for public packages¶
Anaconda.org hosts hundreds of useful Python packages for a wide variety of applications. You do not need to be logged in, or even need a Anaconda.org account, to search for public packages, download and install them. You need an account only to access private packages without a token or to share your packages with others.
To search for packages:
- In the top Search box, type part or all of the name of a program you are searching for, and then press Enter.
- Packages that match your search string are displayed. To see more information, click the package name.
For more information, see Working with packages.
Refining your search results¶
You can filter search results using 3 filter controls:
Type: All, conda only, Standard Python only, Standard R only, or Notebooks.
Access: All, Public, Private (only available if you are logged in and have specific permissions), or Authenticated (only available if you are logged in).
Platform: All, source, linux-32, linux-64, linux-aarch64, linux-armv61, linux-armv71, linux-ppc641e, linux-s390x, noarch, osx-32, osx-64, win-32, or win-64.
Source packages are source code only, not yet built for any
Noarch packages are built to work on all platforms.
Downloading and installing packages from Anaconda.org¶
You can download and install packages using Anaconda Navigator, the graphical user interface for Anaconda. Advanced users may prefer a terminal window or command prompt.
Using conda in a Terminal window or Anaconda Prompt¶
To download and install a package into its own environment:
- Locate a package on Anaconda.org that you want to download, then click on the package name.
- A detail page displays specific installation instructions for the current operating system. Copy and paste the full command into your terminal window.
For example, the command could be structured as:
conda install -c username packagename
NOTE: For the following examples to work, you need to have conda downloaded and installed.
TIP: Conda expands
username to a URL such as
https://anaconda.org/username, based on the settings in the
Open a Anaconda.org account to upload packages or to access private packages without a token.
To build and upload packages, install the Client command line interface (CLI). For more information, see Installing Anaconda Client.
Use the Terminal window or an Anaconda Prompt to perform the following steps.
Install Anaconda Client:
conda install anaconda-client
Log in to your Anaconda.org account:
At the prompt, enter your Anaconda.org username and password.
Choose the package you would like to build. For this example, download our public test package:
git clone https://github.com/Anaconda-Platform/anaconda-client cd anaconda-client/example-packages/conda/
To build your test package, first install
conda-buildand turn off automatic Client uploading, then run the
conda install conda-build conda config --set anaconda_upload no conda build .
Find the path to where the newly-built file was placed so you can use it in the next step:
conda build . --output
Upload your newly-built test package to your Anaconda.org account:
anaconda login anaconda upload /your/path/conda-package.tar.bz2
/your/path/with the actual path that you found in the previous step.
For more information, see conda packages.