February 7, 2015

How to Get Almost All the Python You Might Need

I am often asked what is the easiest way to build Python environments. For development purposes it's most convenient to have a "batteries included" environment that can be pared down once development is over. Continuum Analytics have for a while offered an open source project called Anaconda to provide easy access to both Python and the batteries.

If you are a Python professional and you get questions from people who would like to try the language I would suggest that the graphical installer would be most appropriate. For anyone familiar with the command line, the command-line installer is not only slightly smaller but allows the scripted creation of disposable Python environments which you can activate just by adding their bin subdirectory at the start of your path.

The video should explain this in detail.


In the video I create a disposable environment under /tmp. Anaconda environments are far heavier than a standard virtual environment, but they offer a huge variety of Python libraries without ever having to understand the complexities of package installation.

[For a more selective installation utility see How to Get the Bits of Python You Need Where You Want Them]

3 comments:

Anonymous said...

You may want to mention also that Anaconda also comes in a "miniconda" format, which is just the base Python plus the "conda" package manager. The download sizes are in the ballpark of ~40 MB.

http://conda.pydata.org/miniconda.html

Steve said...

Indeed, I plan a separate post about miniconda.

anatoly techtonik said...

There is another worthy project to cover poor Python usability on Windows - https://winpython.github.io/