You gotta constantly purify yourself, living in the city, around human beings. There might be people close to you who affect you inside yourself in such a corrupt way that it screws with your ability to do what you do. But if you make sure that the people who are close you are good people who are there for you and love you, you can create your temple everywhere you go.
Rock guitarists usually do not wish to think trains of thought about anything but their own guitar playing during a long solo, and I could not play this way if I were not able to divide my attention between my ever changing musical environment and my instrument itself.
What really helps me is being able to record my albums at home - I have more fun experimenting that way, as opposed to working with an engineer, in which case I have to deal with the humiliation of doing take after take, and that can get frustrating.