if you have space and you are aware of what you are doing , lift weights at home is relaxing , just put on some chill music or turn on tv and do your workout.
For cardio , use a jump rope or just go running outside.
Gym maybe is good that you have someone that suggest you what and how to do things but when you learned your exercises and the correct positions you can do it alone at home.
The downside is that you can't see dem asses that were distracting you anymore but whatever.