Once conda is installed create a new env via:
conda create -n env_name python=3.9
...
conda activate env_name

This will install a new virtual environment with Python 3.9 and activate it afterwards. You could then install PyTorch into this environment.