创建:conda create --name 环境名 python (这里的python必须要anaconda/bin里面有的,否则出错)
进入新创建的环境:conda activate 环境名
pip安装torch
pip install torch==1.10.2 -i https://pypi.tuna.tsinghua.edu.cn/simple
创建:conda create --name 环境名 python (这里的python必须要anaconda/bin里面有的,否则出错)
进入新创建的环境:conda activate 环境名
pip安装torch
pip install torch==1.10.2 -i https://pypi.tuna.tsinghua.edu.cn/simple