installation not just python, but the scientific stack as well: anaconda is better than other...

12
Installation Not just Python, but the scientific stack as well: https://www.continuum.io/downloads Anaconda is better than other Python Distributions because of its package manager conda.* * Python’s own package manager pip requires compilation.

Upload: randolf-chandler

Post on 21-Jan-2016

224 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Installation Not just Python, but the scientific stack as well:  Anaconda is better than other Python Distributions because

Installation

Not just Python, but the scientific stack as well:

https://www.continuum.io/downloads

Anaconda is better than other Python Distributions because of its package manager conda.*

* Python’s own package manager pip requires compilation.

Page 2: Installation Not just Python, but the scientific stack as well:  Anaconda is better than other Python Distributions because

Python 2 vs. Python 3

The differences between 2 and 3 are small.

Python 3 has many exciting new features.

Python 2 is maintained for legacy applications only. No new features are backported.

Some libraries have not been updated for seven years, and thus do not support Python 3.

Page 3: Installation Not just Python, but the scientific stack as well:  Anaconda is better than other Python Distributions because

Python

New projects should use Python*.

* The most current version of Python

But there is legacy Python that still supports your seven year old application if you need it.

Page 4: Installation Not just Python, but the scientific stack as well:  Anaconda is better than other Python Distributions because

Development Tools

PyCharmCommunity Edition (free)

Full IDE:

• Refactoring

• Projects

• Navigation

• Debugging

Page 5: Installation Not just Python, but the scientific stack as well:  Anaconda is better than other Python Distributions because

Development Tools

SpyderComes with Anaconda

Open Source

Matlab-Like:

• Interactive Console

• Data Views

• Debugging

Page 6: Installation Not just Python, but the scientific stack as well:  Anaconda is better than other Python Distributions because

Development Tools

Atom & IPythonText Editor and Command Line

Choose your own text editor

Choose IPython as a great command line

Page 7: Installation Not just Python, but the scientific stack as well:  Anaconda is better than other Python Distributions because

Package Managers

pip install <package> installs packages.

Page 8: Installation Not just Python, but the scientific stack as well:  Anaconda is better than other Python Distributions because

Package Managers

pip install <package> installs packages.

But there is a problem

If the package includes C code, pip needs a compiler.

And compilers are a BIG BAG OF PAIN.

Page 9: Installation Not just Python, but the scientific stack as well:  Anaconda is better than other Python Distributions because

Package Managers

pip install <package>

conda install <package> installs packages.…binaries.…pythons.…languages.

… but only if it’s one of these*:abstract-rendering affine alabaster ansi2html appscript argcomplete astroid astropy azure babel basemap bcolz beautiful-soup binstar binstar-build biopython bitarray blaze blaze-core blist blockspring blz bokeh boost boto bottleneck bsdiff4 btrees certifi cffi chameleon chest chrpath click cligj cloudpickle clyent cmake colorama conda conda-api conda-build conda-env configobj coverage cryptography cssselect csvkit cubes curl cvxopt cymem cython cytoolz dask datashape datrie dbf decorator dill django docopt docutils dynd-python ecdsa ephem execnet fastcache feedparser fiona flake8 flask flask-login flask-wtf fontconfig freeglut freetype future futures gdal gensim geos greenlet gunicorn h5py hdf5 heapdict holoviews html5lib icu idna iopro ipython itsdangerous jdcal jedi jinja2 joblib jpeg jsonschema lancet-ioam launcher ldap3 libconda libdynd libffi libgdal libnetcdf libpng libsodium libtiff libxml2 libxslt line_profiler llvmlite locket lockfile logilab-common lxml markdown markdown2 markupsafe mathjax matplotlib mccabe mdp meld3 menuinst mingw mistune mock mpmath msgpack-python multimethods multipledispatch murmurhash mysql-connector-python nano natsort ncurses netcdf4 networkx nltk node-webkit nose numba numexpr numpy numpydoc odo openpyxl openssl pandas param paramiko partd passlib pastedeploy patchelf patsy pep8 persistent pexpect pillow pip plac ply preshed psutil psycopg2 ptyprocess py pyasn1 pycosat pycparser pycrypto pycurl pyflakes pygments pylint pymc pymongo pymysql pyodbc pyopengl pyopengl-accelerate pyopenssl pyparsing pyqt pyramid pyreadline pyserial pysnmp pystan pytables pytest pytest-cache pytest-pep8 python python-dateutil pytz pywget pywin32 pyyaml pyzmq qt quandl queuelib rasterio readline redis redis-py reportlab requests rope runipy sas7bdat scikit-bio scikit-image scikit-learn scipy seaborn semantic_version setuptools sh shapely sip six snowballstemmer snuggs sockjs-tornado spacy sphinx sphinx_rtd_theme spyder sqlalchemy sqlite sqlparse statsmodels stripe sympy terminado theano thinc tk toolz tornado translationstring twisted ujson unidecode unixodbc unxutils util-linux venusian virtualenv vispy w3lib webob werkzeug whoosh wtforms xlrd xlsxwriter xlwings xlwt xray xz yaml zeromq zlib

* it’s not that big a deal in practice

Page 10: Installation Not just Python, but the scientific stack as well:  Anaconda is better than other Python Distributions because

Package Managers

conda install <package> installs most packages.

pip install <package> installs all other packages.

On Windows, if you’re desperate, there’s also www.lfd.uci.edu/~gohlke/pythonlibs/

Page 11: Installation Not just Python, but the scientific stack as well:  Anaconda is better than other Python Distributions because

Getting Help

For Python: https://www.python.org/

For Numpy/Scipy: https://scipy.org/

For Matplotlib: http://matplotlib.org/

… you get the idea. Every package has its own website.

Page 12: Installation Not just Python, but the scientific stack as well:  Anaconda is better than other Python Distributions because

Starting Points

The Python Tutorial https://docs.python.org/3/tutorial/

Dive Into Python 3http://www.diveintopython3.net/

A Byte of Python (Python 2*)http://www.swaroopch.com/notes/python/* the differences between 2 and 3 are small