To bypass dependency conflicts, my team is migrating to a new setup where each branch of our build will have different virtualenvs (with different dependencies in requirements.txt files for pip to install). The entire team is on Pycharm and mercurial.
Question: Is there an easy way to have Pycharm automatically switch to the respective virtualenv when switching between branches? I stress automatically, because we devs switch between different branches many times a day, and if we forget to change virtualenvs it can be problematic