Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Conda, PyGotham 2015

Sponsored · SiteGround - Reliable hosting with speed, security, and support you can count on. →

Conda, PyGotham 2015

Conda lightning talk at PyGotham 2015

Christine Doig

August 15, 2015

Transcript

34 slides
  1. CO NDA INSTALL PYTHO N=3.4 M O NG O DB

    PYTHO N=2.7 R SPARK NUTCH R-M ATRIX PANDAS NUM PY FLASK NO DE
  2. ANACONDA MINICONDA PYTHON CONDA PACKAGES PYTHON CONDA a bunch of

    for scientific computing and data science
  3. CONDA VS PIP(+VIRTUALENV) CONDA PIP Language agnostic Python packages handles

    environments ! natively virtualenv installs binaries compiles from source general purpose ! envs python! envs
  4. CONDA + PIP $ conda install pip $ pip install

    foo CONDA SKELETON PYPI $ conda skeleton pypi foo $ conda build foo/
  5. WHY USE CONDA? Seen this message too many times:“Storing debug

    log for failure in /.pip/pip.log” Python with compiled, platform- dependent C, C++, or Fortran code Multi-language Data Science Projects
  6. ANACONDA.ORG ~GITHUB FOR BINARY PACKAGES $ conda build conda.recipe/ $

    conda server upload my_foo_pkg $ conda install -c chdoig my_foo_pkg
  7. ENVIRONMENT.YML name: myenv! channels:! - chdoig! - r! - foo!

    dependecies:! - python=2.7! - r! - r-ldavis! - pandas! - mongodb! - spark=1.5! - pip! - pip:! ! ! ! - flask-migrate! ! ! ! - bar=1.4
  8. FREEZE VERSIONS $ conda env export -n freeze.yml name: pygotham-topic!

    dependencies:! - certifi=14.05.14=py27_0! - gensim=0.10.3=py27_0! - ipython=3.2.1=py27_0! - ipython-notebook=3.2.1=py27_0! - jinja2=2.8=py27_0! - jsonschema=2.4.0=py27_0! - libsodium=0.4.5=2! - markupsafe=0.23=py27_0! - mistune=0.7=py27_0! - ncurses=5.9=1! - nltk=3.0.4=np19py27_0! - numpy=1.9.2=py27_0!
  9. CONDA AUTO ENV cdoig:~$ cd pygotham-topic-modeling/ discarding /anaconda/bin from PATH

    prepending /anaconda/envs/pygotham-topic/bin to PATH (pygotham-topic)cdoig:~/pygotham-topic-modeling$ https://github.com/chdoig/conda-auto-env

More Decks by Christine Doig

Other Decks in Technology