Downloading and installing the XGBoost package
The first thing you need to do is prepare your Python environment. We recommend using Anaconda to install and manage your Python packages because it does a good job of handling any package-to-package dependencies. We’ll also be using a virtual environment to keep all the required packages for the projects in this book contained in a single place.
Anaconda and conda are recommended
Anaconda checks for package dependencies during the installation process, which is important. With Python, a single package may require others to be installed and may require a specific version of those packages. For example, pandas requires NumPy. When you use Anaconda, these version checks are done at your environment level, including everything you have already installed. This avoids a problem where you might have conflicting versions. However, it can sometimes take a while for it to build a solution that addresses all the packages you’...