introduction to the python conda package manager

13
INTRODUCTION TO CONDA Python Bordeaux Meetup – Node 2016-02-04 Damien Garaud

Upload: damien-garaud

Post on 15-Jan-2017

335 views

Category:

Software


0 download

TRANSCRIPT

Page 1: Introduction to the Python conda package manager

INTRODUCTION TOCONDA

Python Bordeaux Meetup – Node 2016-02-04

Damien Garaud

Page 2: Introduction to the Python conda package manager

WHO AM I?Damien Garaud

Scientist Programmer

Trainer & learning-addict

@jazzydag

https://github.com/garaud

Page 3: Introduction to the Python conda package manager

PACKAGE DISTRIBUTION FAMILYeasy_install

pip

virtualenv

wheel

Page 4: Introduction to the Python conda package manager

PIP FOR SCIENTIFIC PACKAGESHave you ever try a

pip install scipy?

Page 5: Introduction to the Python conda package manager

JUST DON'T

Page 6: Introduction to the Python conda package manager

DID YOU SAY COMPILATION?Give me a C/C++/Fortran compiler please

OS & Architecture dependent

ABI compatibility

Numpy stack <- pandas, scipy, matplotlib, sklearn,skimages, OpenCV, PyTables, numexpr

Page 7: Introduction to the Python conda package manager

PYTHON PACKAGINGPython version 2.7, 3.4, 3.5

Which compilers? Which version?

Numpy C API version 1.7, 1.8, 2.X

Deep Dependencies

I'm a pandas

Page 8: Introduction to the Python conda package manager

GREAT POWER, GREAT RESP...You should manage your own stuff

GNU/Linux: apt, yum, pacman

OSX: macports, homebrew

Windows: ??

Page 9: Introduction to the Python conda package manager

(ANA)CONDAPython distribution: 2.7, 3.5

Package Manager: conda

Continuum Analytics company

http://docs.continuum.io/anaconda/index

http://conda.pydata.org/docs/index.html

Page 10: Introduction to the Python conda package manager

MAIN COMMANDSCommand Line doesn't bite

conda help

conda search <pkg>

conda install <pkg>

conda upgrade <pkg>

conda uninstall <pkg>

Page 11: Introduction to the Python conda package manager

CONDA ENVIRONMENTSQuite similar to virtualenv

conda create ‐n newenv <pkg1> <pkg2>

Can use different Python versions

conda create ‐n py35 python=3.5

source activate py35

pip still works

clone, reproduce, build, share

Page 12: Introduction to the Python conda package manager

DEMO...

A Prayer for the Wireless God

...

Page 13: Introduction to the Python conda package manager

THANKSInspired from

https://speakerdeck.com/teoliphant/packaging-and-deployment-with-conda