Appendix A: How to Setup a Python Environment
This book's GitHub repository (http://github.com/PacktPublishing/Hands-On-Financial-Trading-with-Python/) contains Jupyter notebooks that will help you replicate the output shown here.
The environment was created by manually choosing compatible versions of all the included packages.