Commit 01f38ddc authored by O'Reilly Media, Inc.'s avatar O'Reilly Media, Inc.
Browse files

trying mht file

parent f4b2aca1
Loading
Loading
Loading
Loading
+1349 −0

File added.

Preview size limit exceeded, changes collapsed.

+0 −0

File deleted.

Preview suppressed by a .gitattributes entry or the file's encoding is unsupported.

+0 −1
Changes for introduction-to-python/section_1/section_1_python_linux_download.txt: 0 added lines, 1 removed line.
Original line number Diff line number Diff line
Check your Python installation for Linux1. Start up a Terminal. You can find the Terminal application at Applications/Accessories/Terminal, or it may already be on your menu bar.This Terminal is another way of navigating your computer and running programs -- just textually instead of graphically. We are going to be running Python and Python scripts from this Terminal.2. Test your Python installation at the Terminal prompt by typingpython and pressing Enter. You should see something likePython 3.4.1 (v3.4.1:d047928ae3f6, May 13 2013, 12:45:22)  [GCC 4.3.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>>  You just started Python! The >>> indicates that you are at a new type of prompt -- a Python prompt. The Terminal prompt lets you navigate your computer and run programs, and the Python prompt lets you write and run Python code interactively.3. Exit the Python prompt by typingexit() and pressing Enter. This will take you back to the Linux Terminal prompt.If your Python version started with a 3, you are done with this section.If your Python version started with a 2, you may have a version of Python 3 installed, just not as the default Python. Typepython3 at a Terminal prompt.If this starts Python, you have a version of Python 3 installed, just not as the default Python. Please use the command python3 instead of python to start Python for the rest of this course.If you have no version of Python 3 installed, we'll need to install it. Please continue to the instructions in the next section.Install PythonPlease install Python 3.4 using your package manager, or from source using the source release here: https://www.python.org/downloads/release/python-341/. Please use the command python3 instead of python to start Python for the rest of this course.Success!You have tested your Python installation.
 No newline at end of file
+0 −1
Changes for introduction-to-python/section_1/section_1_python_osx_download.txt: 0 added lines, 1 removed line.
Original line number Diff line number Diff line
Download and install Python for OS X• If you are running OS X version 10.6 or later, click https://www.python.org/ftp/python/3.4.1/python-3.4.1-macosx10.6.dmg to download the Python installer.• If you are running OS X version 10.5, click and download the Python installer from this link instead.• If you have a version of OS X older than 10.5, please upgrade to a newer version of OS X before installing Python.Once the download is complete, double-click on the installer to run it and complete the installation.Checking your Python installation1. Start up a Terminal. You can find the Terminal application through Spotlight, or navigate to Applications/Utilities/Terminal.This terminal is another way of navigating your computer and running programs -- just textually instead of graphically. We are going to be running Python and Python scripts from this Terminal prompt.2. Test your Python install at the command prompt. Typepython3 and press Enter. You should see something likePython 3.4.1 (v3.4.1:d047928ae3f6, May 13 2013, 12:45:22)  [GCC 4.2.1 (Apple Inc. build 5646)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> You just started Python! The >>> indicates that you are at a new type of prompt -- a Python prompt. The command prompt let's you navigate your computer and run programs, and the Python prompt lets you write and run Python code interactively.3. To exit the Python prompt, typeexit() and press Enter. This will take you back to the OS X terminal prompt.Success!You have tested your Python installation.
 No newline at end of file
+0 −1
Changes for introduction-to-python/section_1/section_1_python_windows_download .txt: 0 added lines, 1 removed line.
Original line number Diff line number Diff line
Download and install Python for Windows1. Click https://www.python.org/ftp/python/3.4.1/python-3.4.1.msi (or whatever the latest version is) and choose "run" if you have the option to. Otherwise, save it to your Desktop, then minimize windows to see your desktop, and double click on it to start the installer. Follow the installer instructions to completion.2. Open a terminal (we will be doing this multiple times, so make a note of how to do this!):o On Windows Vista or Windows 7: click on the Start menu (the Windows logo in the lower left of the screen), type cmd into the Search field directly above the Start menu button, and click on "cmd" in the search results above the Search field.o On Windows XP: click on the Start menu (the Windows logo in the lower left of the screen), click on "Run...", type cmd into the text box, and hit enter.You have started a terminal prompt. This terminal prompt is another way of navigating your computer and running programs -- just textually instead of graphically. We are going to be running Python and Python scripts from this terminal prompt.3. At this C:\ prompt that appears, test your Python installation by typing:\Python34\python.exe and pressing Enter. You should see something likePython 3.4.1 (v3.4.1:d047928ae3f6, May 13 2013, 12:45:22) on win32 Type "help", "copyright", "credits" or "license" for more information. >>> You just started Python! The >>> indicates that you are at a new type of prompt -- a Python prompt. The terminal prompt lets you navigate your computer and run programs, and the Python prompt lets you write and run Python code interactively.4. To exit the Python prompt, typeexit() and press Enter. This will take you back to the Windows command prompt (the C:\ you saw earlier).Put Python on the PATHYou might have noticed that you typed a "full path" to the Python application above when launching Python (python.exe is the application, but we typed \Python34\python.exe). In this step, you will configure your computer so that you can run Python without typing the Python34 directory name.Get to System Properties1. Open up "My Computer" by clicking on the Start menu or the Windows logo in the lower-left hand corner, and navigate to "My Computer" (for Windows XP) or "Computer" (For Vista and Windows 7).2. Right-click on the empty space in the window, and choose Properties.If you're using XPA window labeled "System Properties" will pop up.1. Click the "Advanced" tab.If you're not using XPA window labeled "View basic information about your computer" will appear.1. In this window, click "Advanced system settings"A window with the title "System Properties" will appear.Edit the Path1. Within System Properties, make sure you are in the tab labeled "Advanced".2. Click the button labeled "Environment Variables".o A window labeled "Environment Variables" will appear.3. In this window, the screen is split between "User variables" and "System variables". Within "System variables", scroll down and find the one labeled Path. Click the "Edit..." button.o A window with the "Variable name" and the "Variable value" should appear. The "Variable value" will already have some text in it; click in the box to unhighlight it (we don't want to accidentally delete that text).4. In the "Variable value" box, scroll to the end. Add the following text, and hit OK. Make sure to include the semicolon at the start!;c:\python34\;c:\python34\scripts5. Press "OK" to close out the system properties window.6. Test your change:1. Open up a new command prompt: you do this the same way you did above when installing python. This needs to be a new command prompt because the changes you just made didn't take affect in prompts that were already open.2. Type python into the command prompt to start Python3. Notice that you now get a Python interpreter, indicated by the change to a >>> prompt.4. Exit the Python prompt by typingexit()and hitting enter. Now you're back at the Windows command prompt (C:\).Success!You have Python installed and configured.
 No newline at end of file