Hello. In this video I am going to talk
you through how to set up your windows
10 system for Python development with
Eclipse, PyDev and Python. So before we
get started you're going to want to have
both Java installed -- so the latest
version of the JDK -- you can download
that from the Oracle webpage or if just
Google jdk download it will be the first
result here. So you want to install that
and secondly you want to install Eclipse.
I'm using Eclipse Neon in this video.
The steps are pretty much the same
for most versions of Eclipse. From
eclipse lunar I believe was the last
time I did this but i think it's
pretty standard throughout. But
I recommend that you get the latest
version of Eclipse (Eclipse Neon)
as it will have the latest features and be the
most up-to-date. Once you've downloaded
Java, the jdk and Eclipse you can
then go and download Python. So I'm going
to start this guide from downloading
Python. I'm going to show you how to download
Python, install Python on Windows 10 and
how to then install PyDev which is the
Python development plugin for Eclipse
that allows you to develop Python
applications using Eclipse. So first
thing you're going to want to do is head
over to python.org and we're going to
download Python 3.5.2.
I've now started doing
everything in Python 3 because it's the
latest version and it's going to be
the one that's supported from now
on. So I recommend that you install
Python 3. If you click on the latest
here you can scroll down and you can see
the files and in the files you want the
Windows x86-64 executable
installer. This is going to give you
an installer which
you can basically just double click and
run the Python installer to get it
installed. Once you've got that
downloaded you just click the file to
download it, it will start. I'm going to
cancel this because I already have it
downloaded and I don't want to wait for
the file to download but once you have
that downloaded you can simply just
double click on the Python 3.5.2
installer and it will pop up with this
screen here. On the first screen this
is very important you're going to want
to click Add Python
3.5.2 to path. What that does is it adds
it to the system path so that when you
go into command prompt or you go into
whatever terminal application you want to use
you can just type Python
and it will work without you having to type
the full
URL of the Python executable.
Also, eclipse is going to depend on it
being added to the path when we come to
install it later. So make sure that's
checked and click install now. If the
user account control screen comes up
just click yes and then let the setup
progress and this will take a few
seconds to install Python. So this is
going to install Python 3 on our system
and is going to set our system
up to be able to use Python.
The installation is coming along, it
shouldn't take too long it's fairly
lightweight so it should only take a
couple of minutes to install this. And we
are almost there. There you go set up
was successful. Now that that's done you
can click on close and just to verify
that it's installed, if you go to start and you
type CMD in the search and you load up
command prompt you can type Python and
you can see that our Python screen,
it's loaded a Python terminal so if you
type print test it will print test
on the screen. So we can close that. Now
we know that Python is installed and
working. The next step we are going
to install pydev into eclipse.
I already have Eclipse installed here, if
you don't have it installed already then go
and download that from the Eclipse
website and just run the installer and
install the latest version of Eclipse.
It doesn't matter if you go for the
standard or enterprise version
we're going to
add extra packages to it anyway.
I recommend installing the enterprise
edition one for Java development. T hat
seems to be the one that has the most
features but if you already have one
installed that is just the standard
install then you can just leave that.
First step is to load eclipse. If
you double click it, you'll see this lovely
Eclipse neon sign loads and I'm going to
leave my workspace in my home directory
/workspace/eclipse.
You can click on use this as a default so
doesn't ask you every time and click OK.
Now eclipsed neon is going to load, it takes
a few seconds for it to load and here
you can see the welcome screen of
eclipse. If you've already
used it it may look different to
this but it looks something like this
where you have your file and your
different windows here. What I'm going to do
is Ii'm going to put that to the side there
like that and I'm going to load up a
browser window. See this this is
a great feature of Windows 10 that you
can snap the browsers like that, perfect.
Okay so what I'm going to do now is I'm
going to search for pydev install and
the first result is the pydev manual 101
install and this is going to tell us
exactly how to install pydev.
We're going to just come down to this
bit here this is what we want here
we want the available sites...
the available updates sites which is kind
of like the repository for updates in
eclipse. So this is what we're interested
in here this http://www.pydev.org/updates
so we're going to go to eclipse and we're
going to click on help and then
we're going to click on install new
software. So we want to install the
pydev plugin into eclipse so that we can
start building Python apps in eclipse.
The first thing to do is we need to
add the software site to eclipse so
if you look here it has a drop down with a
bunch of existing ones in here so we're
going to click Add and it's going to ask
us for a name
it doesn't really matter what you put the
name as but it's good to put it as something
that you will be able to recognize later
so in case you need to change it or
remove it. I'm just going to call it
pydev updates and then you copy this URL.
You can copy the nightly build one but
this can be unstable because this is
the release that isn't the stable
version. The main one is the one that
should be tested and ready to work, so I
always just stick with the main one
especially if I'm doing it for work
because I like it to be reliable as
opposed to having the latest features.
If you paste that into location and then
you click on OK now you should see that
we get the options for pydev and
the pydev mylyn integration. I
think that's how you say it my-lyn. We only need
the pydev so let's just check pydev
and all of its sub options and
we'll click Next. This is going to
connect to this URL and it's going to
pull down all the necessary data.
This is what it looks like if you just
go to the browser, nothing is here.
It's going to pull down on the necessary
information for
Eclipse to install this plugin. So you
can see here that it's asking us to
review the items that we're going to
install, so it's a pydev for eclipse
and
pydev Eclipse for developer resources, we'll just
leave them and just click on next and
now it's asking us to set the agreement
so read Authority make sure you have a
lawyer check it out just in case there's
anything in there might catch you out later
and then click on I accept and
finish and now it's going to install and if
this security warning comes up saying
that's it's unsigned content you can just
click on ok because that just comes up
because these certificates aren't trusted by
eclipse yet so if we just click on...
you've got to tick the
brainwy software and then you click OK and then
Eclipse can go and it can download all
of the necessary
files into eclipse. So once that's done
it's going to say
you'll need to restart eclipse for the
changes to take effect let's click on
yes now eclipse is going to restart and
you've got Eclipse neon come up again
because we checked the box to
not ask us again what the
workspaces is, it will choose that by
default. Now the Eclipse plug-in is
installed, but where is it? What do we do
next? Well what you need to do is you
need to open the perspective for pydev
so if you click on window, click on
perspective, click on open perspective,
and then other and in here you can see
the pydev perspective. Now that's
done you can go ahead and start working
on your Python project. So I'll just show
you quickly -- if you go
file > new > pydev project if we type
hello project and it says initially that
our interpreter not specified.
That's because we need to set it here so
we're going to choose the grammar
version 3 to 3.5 and it's going to say
please configure an interpreter before
proceeding. Click on that link, it's going
to ask us do you want a manual config
or auto config or advanced config.
We're going to choose quick auto
config and because we set the Python
path and everything in Windows
because we check that box at the
beginning, that allowed us to use
the auto config which worked very quickly.
So that's it. That's how you
create your project and then you can
just go ahead and start developing
python apps. Awesome Python apps.
Let me know how you get on. If you
have any questions or anything please
feel free to leave them in the comments
of this video and thank you for watching.
Bye.