Setup instructions
Contents
- Install Python
- Install git (for code version control)
- Install a programming oriented text editor
Install Python
Using Anaconda (RECOMMENDED)
Note: if you have previously installed Anaconda use conda update anaconda
from the command line
- Download the latest version of Anaconda 3.6 x64 from https://www.anaconda.com/download/.
- Windows
- Click on Anaconda3-5.2.0-Windows-x86_64.exe and follow instructions.
- I like to install it in
C:\anaconda3
. This is not the default location but it’ll make it easier to find your Anaconda installation later if you need it.
- OSX
- Click on Anaconda3-5.2.0-MacOSX-x86_64.pkg and follow instructions
- I like to install it in
~/anaconda3
(default).
- Windows
- Verify that conda has been installed
conda --version
should result inconda 4.5.9
or later- Windows : pip –version should result in something like
pip 10.0.1 from C:\anaconda3\lib\site-packages/pip (python 3.6)
- OSX :
pip --version
should result in something likepip 10.0.1 from /Users/$USER/anaconda3/lib/python3.6/site-packages/pip (python 3.6)
**If you do not see anaconda
in the path string when you type pip --version
, reinstall anaconda and check if the installation was successful. If you still do not see anaconda in the path, check your $PATH
variable to see if the directory to anaconda exists.
Install git
- Windows
- Download latest verison of
git
(2.18.0 x64) from https://git-scm.com/downloads - Ensure
Git Bash Here
is selected (default) - Ensure
Git GUI Here
is selected (default) - Select
Use Git from the Windows Command Prompt
(default) - Select
Checkout Windows-style, commit Unix-style line endings
(default) - Select
Use MinTTY (the default terminal of MSYS2)
(default) - Hit Next for remaining
- Download latest verison of
- OSX
- Download latest version of
git
(2.18.0) from https://git-scm.com/downloads- You may need to allow applications to be downloaded from anywhere.
- System Preferences > Security & Privacy > General > Allow applications downloaded from > Anywhere
- If using git for the first time from terminal, you will get a prompt to say GIT not installed do you want to download? Select yes (you don’t need the full Xcode)
- Download latest version of
Install a programming oriented text editor (feel free to use your favorite)
We will make extensive use of text files, so you may want a good quality, programmer oriented text editor. Feel free to substitute your favorite alternative editor.
Option 1: Visual Studio Code OR Atom (RECOMMENDED)
Both text editors are equally excellent text editors.
- Download and install VSCode
See this page for how to install python extensions for VSCode.
- Download and install Atom
Option 2: Sublime Text (alternative)
- Download and install Sublime Text 3 from https://www.sublimetext.com/3
Footnotes
An easy way to start the terminal is to press Command-space and then start typing Terminal in the spotlight search box. It will most likely be the first hit.
An easy way to start a command prompt under Windows 7 is through the Start Menu and then Search for programs and files box. Type cmd and it should appear. Under Vista/XP, use the “Run…” option under the start menu and type cmd.