Curling Up with Python

This section walks you through the Python installation process for both Mac and Windows users. It also provides general information about virtual environments and walks you through the steps of creating one on your machine.

Install Anaconda for Mac

Step 1. Go to the Anaconda Distribution Page

Step 2 Click Download, and select the latest Python version.

Step 3 Follow the steps in the visual installer!

Install Anaconda for Windows

Step 1. Go to the Anaconda Distribution Page

Step 2. Click Download, and select the latest Python version.

Step 3. Open the installer and follow the instructions to complete the installation.

Important! Please ensure that you check the box that says "add to PATH" when installing on PC.

AddtoPATH

Python Virtual Environments

The Python documentation tells us that Python applications will often use packages and modules that are not part of the standard library. Some applications require a specific version of a library if, for example, that version has fixed a bug, or because the application was written using an obsolete version of the library's interface.

This means that it may not be possible for one Python installation to meet the requirements of every application. If Application A needs version 1.0 of a particular module but Application B needs version 2.0, then the requirements are in conflict, and installing either version 1.0 or 2.0 will leave one application unable to run.

The solution to this problem is to create a virtual environment, a self-contained directory tree that contains a Python installation for a particular version of Python, plus a number of additional packages. Check out Python's tutorial on Virtual Environments and Packages for more information.

Your instructor will lead you through the process of creating a virtual environment later in the Bootcamp.

Conda

There are multiple ways to create virtual environments, but in this course we will be using Conda. Conda is a package manager application that quickly installs, runs, and updates packages and their dependencies. It allows you to easily set up and switch between environments on your local computer. Conda is included in all versions of Anaconda and Miniconda. Check out the Conda user guide for more information.

Verify Installation

Verify that Conda is installed by checking its version with conda --version. Then update Conda by running the update command, conda update conda. If a newer version is available, accept the update.

VirtualEnvIntro