In order to understand the structure of TensorFlow, all the examples presented in this chapter will use the latest TensorFlow 1.x release: 1.15; however, we will also set up everything needed to run TensorFlow 2.0 since we are going to use it in the next chapter, Chapter 4, TensorFlow 2.0 Architecture.
All the examples presented in this book specify the version of TensorFlow to use when running it. Being a library, we can just install it specifying the version we need. Of course, having two different versions of the same library installed on one system would be a mistake. In order to be able to switch between versions, we are going to use two different Python virtual environments.
An explanation of what a virtual environment (virtualenv) is and why it perfectly fits our needs follows here, from the official introduction to virtual environments (https://docs.Python...