In this tutorial, we will cover the following steps:
- 1.Download Anaconda
- 2.Install Anaconda
- 3.Start and Update Anaconda
- 4.Update scikit-learn Library
- 5.Install Deep Learning Libraries
In this step, we will download the Anaconda Python package for your platform.
In this step, we will install the Anaconda Python software on your system.
This step assumes you have sufficient administrative privileges to install software on your system.
In this step, we will confirm that your Anaconda Python environment is up to date.
Anaconda comes with a suite of graphical tools called Anaconda Navigator. You can start Anaconda Navigator by opening it from your application launcher.
Conda is fast, simple, it’s hard for error messages to hide, and you can quickly confirm your environment is installed and working correctly.
- 1.Open a terminal (command line window).
- 2.Confirm conda is installed correctly, by typing:
- 3.Confirm Python is installed correctly by typing:
- 4.Confirm your conda environment is up-to-date, type:
conda update conda
You may need to install some packages and confirm the updates.
- 5.Confirm your SciPy environment.
The script below will print the version number of the key SciPy libraries you require for machine learning development, specifically: SciPy, NumPy, Matplotlib, Pandas, Statsmodels, and Scikit-learn.
You can type “python” and type the commands in directly. Alternatively, I recommend opening a text editor and copy-pasting the script into your editor.
In this step, we will update the main library used for machine learning in Python called scikit-learn.
- Update scikit-learn to the latest version.
At the time of writing, the version of scikit-learn shipped with Anaconda is out of date (0.17.1 instead of 0.18.1). You can update a specific library using the conda command; below is an example of updating scikit-learn to the latest version.
At the terminal, type:
conda update scikit-learn
Alternatively, you can update a library to a specific version by typing:
conda install -c anaconda scikit-learn
conda install theano