Learn how to use Anaconda as a Python interpreter.
- [Instructor] Let us learn how to install Python on our system. Python has been around, so there is a number of versions. There is a large number of applications that persist in Python since the early days. Historically, backward compatibility is generally assumed in between the minor versions of the same major version of Python. For example, between 2.6 and 2.7. But between major versions, such as 2.7 to 3.5 there are breaking changes. Version 1 is very old at this point and not relevant. But the differences between 2.x and 3.x are very significant.
Complex code can be difficult to port and so for that reason, version 2.x persists long after version 3.x has become mainstream. In fact, most versions of Linux or Unix still install Python 2.x as the default system Python. Though Python is often available in parallel with Python 3. If you're not already invested in Python 2, I suggest just starting with Python 3. As I said before, I don't recommend using the system Python for most users. There's a great alternative that works well for many users Continuum Analytics Anaconda.
A Python environment designed specifically for data science users. Anaconda provides a commercially-supported, downloaded Python environment which also includes the most common packages used by data scientists. After the download and installation users can quickly get up to speed and most data science-related Python code should just work. Anaconda provides another advantage. It requires no administrator or root access to run. And each user installs the entire Anaconda in his or her home directory.
Packages can be installed freely without bothering admins, and locked-down corporate laptops can easily handle Anaconda. Continuum provides separate installs for Python 2.x users and 3.x users. Users who want to run both have separate Anaconda environments, one for each. The overall Anaconda environment has its own version number, 4.3 at the time of writing, and that applies to both. So Anaconda can be downloaded from Continuum's website. Installation depends on the platform, Windows, Mac or Linux.
Let's click on the link that corresponds to our platform in version 3.6 for Windows. Now I'm going to run the install. Agree, install for just me, and I'm going to try the default location, but in my case it's going to give me a warning. It says that there is a space in the installation directory, and it says that may cause problems.
So because of that, I am going to change the location to just C:\Anaconda3. This may not be relevant to you, so in your case using the default should be okay. I'll leave these checked. And now I will wait while we perform the install. This is going to take several minutes at least. Okay, we're done. Let's verify our install. So on Windows we can go to Start and then go to Anaconda, and then click on Anaconda prompt.
Linux and Mac users, you should be able to just open up a terminal window and do the same thing. Okay, so now that we're here, let's type in the command conda --version So you can see that it says conda 4.3.8. That's the version of Anaconda that we're running. Let's type in conda list What that does is it gives us a list of all the packages that we currently have installed.
Now let's perform an update. So we'll say conda update conda. And it says we're going to do an update. We'll say yes. Good, so now we've updated conda and we've successfully installed it.
- Configuring your system
- Setting up labs
- Using pandas, NumPy, and SciPy
- Building a classifier
- Clustering data
- Working with big data and PySpark
- Using MLlib
- Beginning with Spark