Did you run conda activate A or conda activate B before running the installation command?
conda activate A
conda activate B
If not, then you have installed pycbc in your base environment, not the two virtual environments, hence the file change issue.