About
Python - Packages (Archive, Distribution) in the context of the conda application
Conda packages are downloaded from remote channels, which are URLs to directories containing conda packages. The conda command searches a default set of channels, and packages are automatically downloaded and updated
Format
A conda package is a tarball or bzipped tar archive, with the extension “.tar.bz2”, which contains :
- metadata under the info/ directory
- and a collection of files that are installed directly into an install prefix.
Management
Install
anaconda.org
From Anaconda.org (Anaconda Cloud)
# Globally
conda install [packagename]
# In a environment
conda install --name envName packagename
where name is the name of an environment. During the install process into an environment, files are extracted into the install prefix, except for files in the info/ directory. See format.
Pypi
- Install a package from Pypi into the current active environment
pip install packageName
Specific Channel
- From a specific channel
conda install --channel channelName packageName
Remove
- Globally
conda remove packageName1 ... packageNameN
- From an environment
conda remove --name envName packageName1 ... packageNameN
Build
Build:
- from Pypi: See Conda - Install a PyPi Package
- from scratch:
- On Linux: Building conda packages from scratch
- On Windows: Building conda packages on Windows
when creating packages:
- Python versions 2.7, 3.4 and 3.5
- along with all of the architectures. osx-64, linux-32, linux-64, win-32 or win-64
Location
/pkgs or PKGS_DIR is the directory that contains decompressed packages, ready to be linked in conda environments.
Each package resides in a subdirectory corresponding to its canonical name.
List
conda list
Search
conda search PACKAGENAME
Repository / Channel
See Conda - Channel