Technical discuss

PIP离线安装

更多
2026-01-17 22:50 - 2026-01-17 22:51 #1033 by service
新帖
  1. 先下载 whl 文件
    • 访问:[url] download.pytorch.org/whl/xpu/ [/url]
    • 下载对应的文件:
      • torch-2.8.0+xpu-cp310-cp310-win_amd64.whl
      • torchvision-0.23.0+xpu-cp310-cp310-win_amd64.whl
      • intel_extension_for_pytorch-2.8.0+xpu-cp310-cp310-win_amd64.whl
  2. 本地安装
    Code:
    # 先安装依赖 pip install typing-extensions numpy pip install pillow # 安装下载好的 whl 文件 pip install D:\Downloads\torch-2.8.0+xpu-cp310-cp310-win_amd64.whl pip install D:\Downloads\torchvision-0.23.0+xpu-cp310-cp310-win_amd64.whl pip install D:\Downloads\intel_extension_for_pytorch-2.8.0+xpu-cp310-cp310-win_amd64.whl

    使用 conda 安装(更稳定)
    Code:
    # 创建新环境 conda create -n ipex_env python=3.10 conda activate ipex_env # 使用 conda 安装 conda install pytorch=2.8.0 torchvision=0.23.0 torchaudio=2.8.0 cpuonly -c pytorch # 再安装 IPEX pip install intel-extension-for-pytorch==2.8.0
              
Last edit: 2026-01-17 22:51 by service.

登录注册一个帐号 参加讨论