Afrikaans
Akan
Albanian
Amharic
Armenian
Azerbaijani
Basque
Belarusian
Bemba
Bengali
Bihari
Bosnian
Breton
Bulgarian
Cambodian
Catalan
Cebuano
Cherokee
Chichewa
Chinese (Simplified)
Chinese (Traditional)
Corsican
Croatian
Czech
Danish
Dutch
English
Esperanto
Estonian
Ewe
Faroese
Filipino
Finnish
French
Frisian
Ga
Galician
Georgian
German
Greek
Guarani
Gujarati
Haitian Creole
Hausa
Hawaiian
Hebrew
Hindi
Hmong
Hungarian
Icelandic
Igbo
Indonesian
Interlingua
Irish
Italian
Japanese
Javanese
Kannada
Kazakh
Kinyarwanda
Kirundi
Kongo
Korean
Krio (Sierra Leone)
Kurdish
Kurdish (Soranรฎ)
Kyrgyz
Laothian
Latin
Latvian
Lingala
Lithuanian
Lozi
Luganda
Luo
Luxembourgish
Macedonian
Malagasy
Malay
Malayalam
Maltese
Maori
Marathi
Mauritian Creole
Moldavian
Mongolian
Myanmar (Burmese)
Montenegrin
Nepali
Nigerian Pidgin
Northern Sotho
Norwegian
Norwegian (Nynorsk)
Occitan
Oriya
Oromo
Pashto
Persian
Polish
Portuguese (Brazil)
Portuguese (Portugal)
Punjabi
Quechua
Romanian
Romansh
Runyakitara
Russian
Samoan
Scots Gaelic
Serbian
Serbo-Croatian
Sesotho
Setswana
Seychellois Creole
Shona
Sindhi
Sinhalese
Slovak
Slovenian
Somali
Spanish
Spanish (Latin American)
Sundanese
Swahili
Swedish
Tajik
Tamil
Tatar
Telugu
Thai
Tigrinya
Tonga
Tshiluba
Tumbuka
Turkish
Turkmen
Twi
Uighur
Ukrainian
Urdu
Uzbek
Vietnamese
Welsh
Wolof
Xhosa
Yiddish
Yoruba
Zulu
1
Hello there and welcome to this new
lecture! In this lecture I'll show you
3
how to set up Python in your computer.
Specifically these instructions are for
5
Windows users so if you are a Mac or
Linux user you can skip this lecture
7
and you can go to the next lecture where
I'll show you how to set up Python on a
9
Mac and instructions also work for Linux
users so Windows users please follow if
11
you haven't installed Python yet, we're
going to download and install python and
13
also try Python out. And so you go to
python.org that's the official Python
15
website and you go to downloads and here
you'll see the latest Python version.
17
Currently it is 3.6.0.
Just click that and save file.
19
Also notice that there's also a version
of Python 2 so Python 2.7 to be exact
21
but Python 2 is not being supported
anymore after 2020 so Python 2 is slowly
23
retiring so it's advisable to use Python
3 this one in here and once you have
25
downloaded the dot exe file just click it.
Run. You can choose to install it in the
27
default directory but you can also do a
customized installation if you want to
29
change the directory, anyway make sure
you have checked this option at Python
31
3.6 to PATH so I'm going to go with the
default installation process. Yeah that
33
was it. Set up was successful. You can
close the window now and we can go ahead
35
and open Pythom so how do we do that
on windows? Well we can press the
37
Windows key button, so we're talking
about the Win key. By pressing it you
39
will be able to search on the start
button, alternatively you can simply go
41
to the start button, click it and then
type cmd and then click on c armed.exe
43
and that will open the windows command prompt.
And so this is like the terminal
45
on Mac or Linux. On Mac and Linux it
is referred to as the terminal on
47
Windows it is referred to as a comand
prompt or command line. To open Python all
49
you have to do is type in Python and
that will open an interactive session of
51
Python and an interactive session is
best for testing out so here you can
53
write lines of code one by one like that
and you promptly get the results in here.
55
So this is why we call it interactive, but
you cannot, it's not very appropriate to
57
write multiple lines of code, so let's
say you have a program that has 10 lines
59
of code and in that case you'd want to
write those lines in a file, in a Python
61
file but we will cover that later and
this is the interactive shell this is
63
good for testing, so before you do a
program you are not sure about certain
65
aspects, certain commands that you
want to include, certain keywords that
67
you want including in your program so you
test things out in here very quickly.
69
This is very efficient and it's also
good for learning. To exit the
71
interactive shell you press exit and
brackets, open and closing brackets.
73
Now something you maybe, you probably noted
was that the Python that I opened was version
75
3.5.2 but why is that because I
installed Python 3.6 in here, 3.6, so why did
77
I get five Python 3.5.2?
Well the answer is that I already had
79
Python 3.5.2
installed on my Windows so in other words
81
before I install Python 3.6 I could
trigger a Python shell like that so the
83
question is how do I run Python 3.6 now?
Well the first thing you should know is
85
that there is no problem having multiple
Python installations in your system, the
87
key here is that you have to assign
different commands to each of your
89
Python
instalations so for instance Python 3.5.2
91
has these commands
to run Python. Now for Python 3.6
93
we need to assign another
command and I'll go and search for the
95
installation directory of
Python 3.6 so open that and now Windows
97
when you search for Python, when you
enter the Python command here, Windows is
99
looking at the path variable, the Windows
path variable and it's searching for
101
this type of command Python but this
was already occupied by another so by
103
Python 3.5.2, that's why it
triggers Python 3.5.2,
105
so in that case you may want to do
trick here, let's say do Python 36 and
107
restart that command prompt and then
run again python 36 and you get Python 36.
109
So that's the trick and again of course
you can do operations here and so on
111
Of course you still have Python 3.5 at
least I have Python 3.5 maybe you don't
113
because you didn't have any Python
installed just yet, so that's the idea.
115
On your system if you install Python for
the first time, if you install
117
Python 3.6 you'll be
able to execute Python with this commands.
119
Python. If you had an existing Python
installation and you install a new one,
121
no problem, you can run Python 36 like I did
I hope this was clear and I hope you are
123
up and running now with Python
And I'll talk to you in the next lectures.
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.