Repository: pytorch
Issue: locally installed PyTorch upgraded or superseded on windows/macos conda tests
Labels: triaged,module: lts

On windows conda CI tests, the pytorch package which is locally installed is superseded by the latest pytorch version from the pytorch channel during installation of dependencies through `conda install  -y cpuonly -c pytorch` on cpu and `conda update --all -c=nvidia -y -c pytorch -c defaults -c numba/label/dev` on cuda. 

On the lts branch, `conda install  -y cpuonly -c pytorch` on cpu with python 3.6 also upgrades pytorch for MacOS. This doesn't happen for other python versions. Also doesn't happen on the release/1.10 branch. 

I have compiled the following links to CI jobs where these behaviors happen. 

## On nightly branch
**Windows Conda python 3.9** 
- cpu - superseded https://app.circleci.com/pipelines/github/pytorch/pytorch/438251/workflows/a4124e39-4860-4ef9-91e7-20ddf07ed0e7/jobs/16939320?invite=true&invite=true#step-105-380
- cu111 - superseded https://app.circleci.com/pipelines/github/pytorch/pytorch/438251/workflows/a4124e39-4860-4ef9-91e7-20ddf07ed0e7/jobs/16939511?invite=true#step-105-389
- cu113 - fine https://app.circleci.com/pipelines/github/pytorch/pytorch/438251/workflows/a4124e39-4860-4ef9-91e7-20ddf07ed0e7/jobs/16939520?invite=true#step-105-343
- cu115 - superseded https://app.circleci.com/pipelines/github/pytorch/pytorch/438251/workflows/a4124e39-4860-4ef9-91e7-20ddf07ed0e7/jobs/16939519?invite=true#step-105-389

**similar for the other python versions** 

**Macos Conda build**
Fine on all cpu python 3.9, 3.8, 3.7, 3.6

## On release/1.10 branch
**Windows Conda python 3.9**
- cpu - superseded https://app.circleci.com/pipelines/github/pytorch/pytorch/432203/workflows/df2e1415-4576-4551-a5a5-de4898c7b907/jobs/16907391?invite=true#step-105-378
- cu102 - superseded https://app.circleci.com/pipelines/github/pytorch/pytorch/432203/workflows/df2e1415-4576-4551-a5a5-de4898c7b907/jobs/16907598?invite=true#step-105-387
- cu111 - superseded https://app.circleci.com/pipelines/github/pytorch/pytorch/432203/workflows/df2e1415-4576-4551-a5a5-de4898c7b907/jobs/16907642?invite=true#step-105-387
- cu113 - fine https://app.circleci.com/pipelines/github/pytorch/pytorch/432203/workflows/41cce2ef-ef3f-46e8-bd6b-738daeee3731/jobs/16909671?invite=true#step-105-343

**similar for the other python versions** 

**Macos Conda build**
Fine on all cpu python 3.9, 3.8, 3.7, 3.6

## On lts/release/1.8 branch
**Windows Conda python 3.9**
- cpu - fine https://app.circleci.com/pipelines/github/pytorch/pytorch/433230/workflows/dd7c2b89-f105-4538-b09d-bf2631b1aa96/jobs/16911343?invite=true#step-105-339
- cu101 - fine https://app.circleci.com/pipelines/github/pytorch/pytorch/433230/workflows/dd7c2b89-f105-4538-b09d-bf2631b1aa96/jobs/16911366?invite=true#step-105-338
- cu102 - updated https://app.circleci.com/pipelines/github/pytorch/pytorch/433230/workflows/dd7c2b89-f105-4538-b09d-bf2631b1aa96/jobs/16911373?invite=true#step-105-397
- cu111 - updated https://app.circleci.com/pipelines/github/pytorch/pytorch/433230/workflows/dd7c2b89-f105-4538-b09d-bf2631b1aa96/jobs/16911413?invite=true#step-105-397

**similar for the other python versions** 

**Macos conda build**
- fine on cpu python 3.7, 3.8, 3.9
- pytorch gets updated on cpu for python 3.6 https://app.circleci.com/pipelines/github/pytorch/pytorch/425467/workflows/c3c154d0-0d9b-4d02-abc1-00e0df6cc40c/jobs/16862700?invite=true#step-106-2767