New Feature: Playlist Center! Pick a topic and let our playlists guide the way.

Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member

Installing Python 3 and Eclipse for Windows

From: Python 3 Essential Training

Video: Installing Python 3 and Eclipse for Windows

Let's take a look at how you can install Python and the Eclipse environment on a Windows PC. I am using a Windows 7 PC here. This same procedure should work for any kind of modern Windows. This is the download page for Python 3.1.2. Use the downloader or installer for whatever version of Python is the latest. If I scroll down here, you will see that there is downloads available for a number of operating systems. I am going to pick the one for this Microsoft Windows box, and I have already actually downloaded this, so I have got that already in my Download folder.

Installing Python 3 and Eclipse for Windows

Let's take a look at how you can install Python and the Eclipse environment on a Windows PC. I am using a Windows 7 PC here. This same procedure should work for any kind of modern Windows. This is the download page for Python 3.1.2. Use the downloader or installer for whatever version of Python is the latest. If I scroll down here, you will see that there is downloads available for a number of operating systems. I am going to pick the one for this Microsoft Windows box, and I have already actually downloaded this, so I have got that already in my Download folder.

Let's also go ahead and download Eclipse. Now in order to install Eclipse, you must have Java installed, and you should probably have the latest Java installed. So I strongly recommend that you make sure that your computer has Java, and it's the latest version of Java. Windows machines do not necessarily come with Java already installed. So you need to make sure that you have Java installed before you install Eclipse. Eclipse is designed to be a development environment for the Java language. We are using it here to develop in Python because it has a lovely plug-in available for Python development, and that works really well.

Here, on the download page for Eclipse, you will notice that there are a lot of choices, and any one of these will actually work. We are going to install the basic Eclipse Classic. Most of the time, when you hover over this link here whatever operating system you are working with, it will get the proper download for your operating system. If you are not sure, you can select the one that you want from this list over here. So let's go ahead and get started with the installation. First, we are going to install Python, and that involves double-clicking on this installer, and I will say Run.

I'm going to go ahead and Install for all users, and I am going to install it in the default location, and I want to make a note where that is. That's Python31 folder, right off of the C disk. Again, I am going to accept the defaults. It's installing everything, and we want that, and then it just goes ahead and does its thing. Now let's go ahead and run IDLE and make sure that it works. There it is, so now we know that we have Python 3.1.2 installed, and it's working.

Now we are going to install Eclipse. Eclipse comes to us in a zip file, so I am going to Extract All just to this default location in my Downloads folder. Now we have the eclipse folder, so I am just pressing Ctrl+N to open another Explorer window, and we'll come down here and find Program Files, and I am going to install it on Program Files (x86) because I don't loaded the 32 bit version. You can put it in the other one if you want to, and I am just going to drag this over here and move it to Program Files.

So I don't want it to go in one of these other folders, so I am going to actually drag it into this part of the window here where it says move to Program Files, and I will Continue and authorize, and there it is. I will open this up, and there is eclipse.exe. I am going to pin it to the Start menu. Now, there it is in my Start menu. So I can close this window, I can close this window, and I no longer need this empty folder here. I will just go ahead and delete that.

Now it's time to start Eclipse. There is still quite a bit left to do here. I am accepting that and running it. I am going to accept the default location for my workspace. I am going to say use this as a default so you don't ask me again. And you can put your workspace wherever it makes sense for you. And now we are running Eclipse but it's not ready to use at all yet. First thing we need to do is we need to install Pydev. That's the development environment for Python. And under the Help menu, you will see there is a selection for Install New Software, and before we can even type something in here, we need to click on this Available Software Sites preferences and Add a new software site.

The URL for this is pydev.org/updates. We are going to call this Pydev, and say OK, and OK. Then up here, we can just start typing Pydev, and we will see that it comes up, so we select that, and it says Pending, and then we check on the one that says Pydev. You probably don't need this Mylyn Integration unless you know that you do, and if you are using Mylyn, by all means, go ahead and add that.

So now I am going to say Next, and it found it, and so I am going to select that and press Finish. And now it's installing the Pydev development environment for Python within Eclipse. Say OK to the unsigned content warning, and it is strongly recommended - it says so right there - that you restart Eclipse, and there is no reason not to, so we will just say OK. All right, we are getting closer. So now we have some configuring to do. We are going to open the Preferences, which is under the Window menu, and we are going to come down here to Pydev and click on the little arrow, and then you are going to click on Interpreter - Python, and we are going to need to add our Python interpreter.

So we will click New, and we will click Browse and remember where Python is. It's under the C drive and in Python 3.1, and there is our Python interpreter. Click Open, and we will just name this Python 3.1 and say OK. Now you will get this Selection Needed window. You just take the defaults and select OK Once you have all of this, you select OK, and this will take a few minutes. Now that you have configured the Python interpreter, you can create your first project.

So under the File menu, you hover over New and you come down here and you select Project. Under the Selection Wizard, you click on the little arrow next to Pydev and you select a Pydev project and click Next, and you want to give it a Project name. I am going to call this Python 3 Essential Training, and you want your Grammar Version should be 3.0, and your Interpreter will be 3.1 Interpreter. Project type should be Python and click Finish, and it says it's the Pydev perspective. You can say Yes for that, and over here in the Perspectives, slide this over and right-click on the Java and click Close and slide it back over, unless you are actually going to be working in Java, in which case, you might want to leave that.

So now we are going to add a folder to our project. I'm going to right-click on Python 3 Essential Training, and I am going to say New > Folder. I am going to click on Advanced and Link to folder in the file system, and then I am going to browse, and I am going to find my exercise files for this course and I put that in my desktop, and there is Exercise Files, and I will select OK, and so Link to folder in the file system is checked, and the parent is this Python 3 Essential Training. I am going to say Finish and there is my Exercise Files.

So this did not copy the Exercise Files into my Project folder; It simply linked to it. And so, almost there. We are going to go back into the Preferences, and under Pydev and under Editor, we are going to find this thing called Hover. If Show docstrings is checked, you might want to uncheck it; you can try it both ways, but for my purposes in demonstrating, I have unchecked it. Feel free to try it both ways and see how that works for you. So what this does is when you hover over an object in Python, it shows the entire documentation.

It pops up on the screen, and personally I find that this gets in the way. You may find it helpful. So feel free to try it both ways. I have got it unchecked on mine. Finally, under General > Editors > Text Editors, you want to make sure that Show line numbers is checked, because that's going to be useful. So we will select OK, and feel free to look through the Preferences and experiment with some of the other options. And now we are going to go ahead and just load up our Hello World program and run it. And so I will select Python Run and OK, and there we have it.

So we have installed Python, we have installed Eclipse, and we have installed the Pydev development environment, and we have configured it so we can use it for Python development, and you can use this environment to follow along with the exercises in this course.

Show transcript

This video is part of

Image for Python 3 Essential Training
Python 3 Essential Training

87 video lessons · 37677 viewers

Bill Weinman
Author

 
Expand all | Collapse all
  1. 5m 14s
    1. Welcome
      1m 32s
    2. Understanding prerequisites for Python
      2m 4s
    3. Using the exercise files
      1m 38s
  2. 33m 29s
    1. Getting started with "Hello World"
      4m 43s
    2. Selecting code with conditionals
      4m 45s
    3. Repeating code with a loop
      4m 13s
    4. Reusing code with a function
      2m 43s
    5. Creating sequences with generator functions
      2m 46s
    6. Reusing code and data with a class
      4m 39s
    7. Greater reusability with inheritance and polymorphism
      7m 17s
    8. Handling errors with exceptions
      2m 23s
  3. 22m 32s
    1. Installing Python 3 and Eclipse for Windows
      11m 24s
    2. Installing Python 3 and Eclipse for Mac
      11m 8s
  4. 28m 0s
    1. Creating a main script
      3m 27s
    2. Understanding whitespace in Python
      4m 8s
    3. Commenting code
      3m 28s
    4. Assigning values
      3m 37s
    5. Selecting code and values with conditionals
      4m 46s
    6. Creating and using functions
      3m 54s
    7. Creating and using objects
      4m 40s
  5. 31m 23s
    1. Understanding variables and objects in Python
      2m 46s
    2. Distinguishing mutable and immutable objects
      2m 41s
    3. Using numbers
      3m 34s
    4. Using strings
      6m 38s
    5. Aggregating values with lists and tuples
      4m 55s
    6. Creating associative lists with dictionaries
      4m 24s
    7. Finding the type and identity of a variable
      4m 45s
    8. Specifying logical values with True and False
      1m 40s
  6. 9m 42s
    1. Selecting code with if and else conditional statements
      2m 22s
    2. Setting multiple choices with elif
      2m 14s
    3. Understanding other strategies for multiple choices
      2m 38s
    4. Using the conditional expression
      2m 28s
  7. 11m 26s
    1. Creating loops with while
      1m 27s
    2. Iterating with for
      3m 54s
    3. Enumerating iterators
      3m 22s
    4. Controlling loop flow with break, continue, and else
      2m 43s
  8. 23m 28s
    1. Performing simple arithmetic
      2m 14s
    2. Operating on bitwise values
      3m 30s
    3. Comparing values
      3m 32s
    4. Operating on Boolean values
      2m 59s
    5. Operating on parts of a container with the slice operator
      6m 52s
    6. Understanding operator precedence
      4m 21s
  9. 11m 34s
    1. Using the re module
      1m 4s
    2. Searching with regular expressions
      3m 12s
    3. Replacing with regular expressions
      3m 29s
    4. Reusing regular expressions with re.compile
      3m 49s
  10. 9m 10s
    1. Learning how exceptions work
      1m 18s
    2. Handling exceptions
      4m 15s
    3. Raising exceptions
      3m 37s
  11. 23m 1s
    1. Defining functions
      6m 23s
    2. Using lists of arguments
      2m 26s
    3. Using named function arguments
      4m 32s
    4. Returning values from functions
      1m 55s
    5. Creating a sequence with a generator function
      7m 45s
  12. 47m 29s
    1. Understanding classes and objects
      5m 12s
    2. Using methods
      6m 12s
    3. Using object data
      10m 4s
    4. Understanding inheritance
      5m 11s
    5. Applying polymorphism to classes
      7m 13s
    6. Using generators
      9m 48s
    7. Using decorators
      3m 49s
  13. 18m 54s
    1. Understanding strings as objects
      3m 25s
    2. Working with common string methods
      5m 24s
    3. Formatting strings with str.format
      5m 31s
    4. Splitting and joining strings
      2m 49s
    5. Finding and using standard string methods
      1m 45s
  14. 25m 27s
    1. Creating sequences with tuples and lists
      4m 6s
    2. Operating on sequences with built-in methods
      5m 50s
    3. Organizing data with dictionaries
      4m 56s
    4. Operating on character data with bytes and byte arrays
      10m 35s
  15. 11m 46s
    1. Opening files
      2m 4s
    2. Reading and writing text files
      4m 33s
    3. Reading and writing binary files
      5m 9s
  16. 21m 27s
    1. Creating a database with SQLite 3
      6m 56s
    2. Creating, retrieving, updating, and deleting records
      7m 31s
    3. Creating a database object
      7m 0s
  17. 18m 27s
    1. Using standard library modules
      8m 0s
    2. Finding third-party modules
      5m 47s
    3. Creating a module
      4m 40s
  18. 23m 11s
    1. Dealing with syntax errors
      8m 19s
    2. Dealing with runtime errors
      4m 0s
    3. Dealing with logical errors
      4m 22s
    4. Using unit tests
      6m 30s
  19. 19m 56s
    1. Normalizing a database interface
      6m 39s
    2. Deconstructing a database application
      8m 9s
    3. Displaying random entries from a database
      5m 8s
  20. 29s
    1. Goodbye
      29s

Start learning today

Get unlimited access to all courses for just $25/month.

Become a member
Sometimes @lynda teaches me how to use a program and sometimes Lynda.com changes my life forever. @JosefShutter
@lynda lynda.com is an absolute life saver when it comes to learning todays software. Definitely recommend it! #higherlearning @Michael_Caraway
@lynda The best thing online! Your database of courses is great! To the mark and very helpful. Thanks! @ru22more
Got to create something yesterday I never thought I could do. #thanks @lynda @Ngventurella
I really do love @lynda as a learning platform. Never stop learning and developing, it’s probably our greatest gift as a species! @soundslikedavid
@lynda just subscribed to lynda.com all I can say its brilliant join now trust me @ButchSamurai
@lynda is an awesome resource. The membership is priceless if you take advantage of it. @diabetic_techie
One of the best decision I made this year. Buy a 1yr subscription to @lynda @cybercaptive
guys lynda.com (@lynda) is the best. So far I’ve learned Java, principles of OO programming, and now learning about MS project @lucasmitchell
Signed back up to @lynda dot com. I’ve missed it!! Proper geeking out right now! #timetolearn #geek @JayGodbold

Are you sure you want to delete this note?

No

Thanks for signing up.

We’ll send you a confirmation email shortly.


Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

Keep up with news, tips, and latest courses with emails from lynda.com.

Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

   
submit Lightbox submit clicked
Terms and conditions of use

We've updated our terms and conditions (now called terms of service).Go
Review and accept our updated terms of service.