If the virtual environment is already activated (the developer may actively be using it) then don't try to activate or deactivate. This will likely be served by several python scripts. These should be documented.