- [Instructor] In this video, we're going to
install the Watson Developer Cloud Python SDK,
as well as a couple of additional modules
that we'll need for our traveler's companion app
that we'll start looking at in the next video.
The Watson Developer Cloud Python SDK
is one of many different SDKs
that the IBM Watson team provides
for working with the Watson web services
from various programming languages.
A lot of what I'll show you here for Python
will also apply to other programming languages,
provided that you install the appropriate SDK
for that language as well.
The key module that you're going to be working with
once you install the SDK is the IBM Watson module,
and that contains a bunch of classes
that make it really easy for you to interact
with the various Watson web services.
Now, I just want to point out that
if by any chance you're following along
in our Python for Programmers book
or our Intro to Python
for Computer Science and Data Science book,
the code at the time used a module
named Watson underscore developer underscore cloud,
and that code will still work however,
the module has been renamed,
so as you look at the online documentation for example,
the code examples are now going
to use the IBM Watson module
rather than the Watson Developer Cloud module.
Now, once you create objects
of the classes from this module,
the way that you'll interact with the web services
is simply by invoking those objects' methods.
You can find the SDK at this link
on the GitHub website.
If I go ahead and pull that up and just,
let me bring a browser onto the screen here,
you'll see as you scroll down
that one of the key pieces is a set of examples
that actually show you
how to work with various services
using the classes in the IBM Watson module.
And if you scroll much further down,
you'll see the introduction to the module,
the fact that you need an IBM Cloud account,
how to install and some other information as well.
Heading back over here.
If you're ready to do the install,
from your command line you can issue
the pip install command that you see here.
Please note if you're a Windows user,
you may need to install Microsoft's C++ Build Tools first,
and those are located at the URL
shown at the bottom of this slide.
If you don't think you have the C++ Build Tools
for Microsoft already installed or you're unsure,
go ahead and do that install first
and then come back and do the pip install command.
Now, you're also going to need two additional modules
for the purpose of our traveler's companion app.
We'll be taking advantage of the PyAudio module
for audio recording capabilities
and we'll be using the PyDub module
for playback capabilities.
These are the installation commands for both of those.
And another side note, if you are a Mac user,
you may first need to install the port audio module.
If you're unsure,
once again just go ahead and issue
that conda install command first,
and if it's already installed it will tell you,
and if it's not already installed
it will enable you to perform that install first,
and then you'll be able to do the pip installs
of PyAudio and PyDub separately.