GithubHelp home page GithubHelp logo

rlugojr / conda Goto Github PK

View Code? Open in Web Editor NEW

This project forked from conda/conda

0.0 2.0 0.0 15.41 MB

OS-agnostic, system-level binary package manager and ecosystem

Home Page: conda.pydata.org

License: BSD 3-Clause "New" or "Revised" License

Makefile 0.17% Python 85.82% Shell 7.95% Batchfile 3.71% PowerShell 1.76% Jupyter Notebook 0.02% Awk 0.57%

conda's Introduction

Conda Logo


Linux & MacOS tests (Travis) Windows tests (Appveyor) Codecov Status latest release version

Join the Conda Announcment List

Conda is a cross-platform, language-agnostic binary package manager. It is the package manager used by Anaconda installations, but it may be used for other systems as well. Conda makes environments first-class citizens, making it easy to create independent environments even for C libraries. Conda is written entirely in Python, and is BSD licensed open source.

Conda is enhanced by organizations, tools, and repositories created and managed by the amazing members of the conda community. Some of them can be found here.

Installation

Conda is a part of the Anaconda distribution. You can also download a minimal installation that only includes conda and its dependencies, called Miniconda.

Getting Started

If you install Anaconda, you will already have hundreds of packages installed. You can see what packages are installed by running

$ conda list

to see all the packages that are available, use

$ conda search

and to install a package, use

$ conda install <package-name>

The real power of conda comes from its ability to manage environments. In conda, an environment can be thought of as a completely separate installation. Conda installs packages into environments efficiently using hard links by default when it is possible, so environments are space efficient, and take seconds to create.

The default environment, which conda itself is installed into is called root. To create another environment, use the conda create command. For instance, to create an environment with the IPython notebook and NumPy 1.6, which is older than the version that comes with Anaconda by default, you would run

$ conda create -n numpy16 ipython-notebook numpy=1.6

This creates an environment called numpy16 with the latest version of the IPython notebook, NumPy 1.6, and their dependencies.

We can now activate this environment, use

# On Linux and Mac OS X
$ source activate numpy16

# On Windows
> activate numpy16

This puts the bin directory of the numpy16 environment in the front of the PATH, and sets it as the default environment for all subsequent conda commands.

To go back to the root environment, use

# On Linux and Mac OS X
$ source deactivate

# On Windows
> deactivate

Building Your Own Packages

You can easily build your own packages for conda, and upload them to anaconda.org, a free service for hosting packages for conda, as well as other package managers. To build a package, create a recipe. See http://github.com/conda/conda-recipes for many example recipes, and http://docs.continuum.io/conda/build.html for documentation on how to build recipes.

To upload to anaconda.org, create an account. Then, install the anaconda-client and login

$ conda install anaconda-client
$ anaconda login

Then, after you build your recipe

$ conda build <recipe-dir>

you will be prompted to upload to anaconda.org.

To add your anaconda.org channel, or the channel of others to conda so that conda install will find and install their packages, run

$ conda config --add channels https://conda.anaconda.org/username

(replacing username with the user name of the person whose channel you want to add).

Getting Help

The documentation for conda is at http://conda.pydata.org/docs/. You can subscribe to the conda mailing list. The source code and issue tracker for conda are on GitHub.

Contributing

Contributions to conda are welcome. Just fork the GitHub repository and send a pull request.

To develop on conda, the easiest way is to use a development build. This can be accomplished as follows:

  • clone the conda git repository to a computer with conda already installed
  • navigate to the root directory of the git clone
  • run $CONDA/bin/python setup.py develop where $CONDA is the path to your miniconda installation

Note building a development file requires git to be installed.

To undo this, run $CONDA/bin/python setup.py develop -u. Note that if you used a python other than $CONDA/bin/python to install, you may have to manually delete the conda executable. For example, on OS X, if you use a homebrew python located at /usr/local/bin/python, then you'll need to rm /usr/local/bin/conda so that which -a conda lists first your miniconda installation.

If you are worried about breaking your conda installation, you can install a separate instance of Miniconda and work off it. This is also the only way to test conda in both Python 2 and Python 3, as conda can only be installed into a root environment.

Run the conda tests by conda install pytest pytest-cov pytest-timeout mock responses and then running py.test in the conda directory. The tests are also run by Travis CI when you make a pull request.

conda's People

Contributors

alanhdu avatar almarklein avatar asmeurer avatar bryevdv avatar dedalusj avatar dorzel avatar electronwill avatar groutr avatar hajs avatar hugotian avatar ilanschnell avatar jaimergp avatar jakirkham avatar jerowe avatar kalefranz avatar kenodegard avatar korijn avatar lidavidm avatar maggie-m avatar malev avatar mcg1969 avatar mingwandroid avatar minrk avatar msarahan avatar nehaljwani avatar soapy1 avatar srossross avatar teoliphant avatar tswicegood avatar ukoethe avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.