What does pip install actually do?
Can you please elaborate on the functionality of the 'pip install' command in the context of Python programming and package management? Specifically, how does it actually work behind the scenes to install packages and their dependencies, and what are some of the key steps involved in the process?