Skip to content

Latest commit

 

History

History
49 lines (27 loc) · 2.55 KB

installing.md

File metadata and controls

49 lines (27 loc) · 2.55 KB

Resources - Installing Python

During class we'll frequently use the command line and a text editor, and it helps if you have these installed before coming to class. But if you're having trouble or don't have time, please come anyway!

First, the Command Line

When learning Python you'll probably come across many references to the Command Line. What is it? How do you use it?

The answers to many of these questions can be found here. On Mac or Linux you're already set with Terminal or bash. To find Terminal on a Mac, look in the Utilities folder in Applications, or search for Terminal. Many versions of Windows come with Powershell, but you can also download it here.

Installing Python

Windows

Windows requires you to install Python, which can be confusing if you're new to programming. Below are a few guides to help you through the process:

  • Download Anaconda, a Python distribution that comes with many of the most popular packages for analytics as well as Spyder, an interactive environment similar to what you're used to if you've used SaS, Stata, SPSS, or R Studio.

  • How-to-Geek's Guide to Installing Python, which includes screen shots documenting the steps, if you prefer visual guides.

  • The official Python Documentation, which has a couple of helpful links.

Mac

An older version of Python comes pre-installed with MacOS. All you need to do is open the Terminal application and type the following:

python

This will start Python in interactive mode, and everything else you type in the terminal window will be treated as Python code.

In order to install a more up-to-date Python, look into Homebrew.

Linux

This depends on the Linux distribution you're using, but it will most likely be installed.

Text Editors

There are quite a few to choose from, but some of the most popular include: