#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:
-
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 helpful links.
-
If you plan to use Python for data analytics you can 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.
Mac
Python comes pre-installed with OSX. 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.
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-
-
Sublime Text 2(Mac, Windows, Linux)
-
Atom(Mac, Windows, Linux)
-
If you're using Windows, Notepad++ is a great option.