返回首页
15/12/2023

Pytorch中国镜像安装使用方法


pip install \
    --index-url https://pypi.tuna.tsinghua.edu.cn/simple \
    --find-links https://mirror.sjtu.edu.cn/pytorch-wheels/torch_stable.html \
    --no-cache-dir \
    torch===2.0.0+cpu
    
pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/