-
Notifications
You must be signed in to change notification settings - Fork 4
setup
pkirlin edited this page Oct 10, 2016
·
4 revisions
Anaconda is a Python distribution that comes with many more packages than the regular Python distribution you downloaded when you were in CS141.
- Go to http://www.continuum.io/downloads.
- Download the Python 3.5 version of Anaconda. For Windows, you probably want the 64-bit version. For Mac, you probably want the graphical installer.
- Install Anaconda. If you see any kind of message about adding Anaconda do your PATH, do it. Do not panic if you don't see the message; it only shows up in certain situations.
- Get to a command line:
-
On Windows, go to the Start Menu, look under the Anaconda section and choose "Anaconda Prompt." At the command line, type
python --version. You should see the version of Python you have. -
On Mac, from the Applications folder on the dock, choose "Terminal." At the command line, type
python --version. You should see the version of Python you have.
- If this all works, you may proceed to the next section.
Spyder is an IDE that is more sophisticated than IDLE, which is the IDE you probably used in CS141.
- On Windows, from the Start Menu, choose Anaconda, then Spyder.
- On Mac, from the Applications menu on the dock, choose "Navigator." From the screen that appears, find the icon for Spyder and choose "Launch."
- Spyder should open.
- Choose File > New file...
- Delete all the sample text that appears in the file.
- Type in a simple hello world program:
print("Hello world!")- Save the file (File > Save) somewhere.
- Press F5 to run, or choose Run > Run File (just like IDLE).
- You should see the output in the IPython console in the bottom right area.
Use the main wiki page to navigate, not the list of pages directly above, because those are out of order.