目录
1.创建虚拟环境

python
conda create --name pytorch python=3.10



2.下载pytorch

python
pip install torch==2.7.1 torchvision==0.22.1 torchaudio==2.7.1 --index-url https://download.pytorch.org/whl/cpu


3.pycharm配置pytorch虚拟环境
python
conda create --name pytorch python=3.10
conda remove -n pytorch --all
conda list