pytorch 官方网站。
官方网站提供多种安装方式,例如pip和conda等,可以参考官方安装文档,文档很详细,建议仔细查看和使用。但安装过程中可能存在网络不稳定导致无法正常安装等情况,需要使用离线方式下载whl文件安装。
pip安装软件可以使用国内安装源加速安装,可以参考安装教程。
首先不推荐pip安装方式。Windows 10 PowerShell安装很容易失败。具体日志如下:
#安装错误日志
Windows PowerShell
版权所有 (C) Microsoft Corporation。保留所有权利。
PS C:\Windows\system32> pip install pytorch
Looking in indexes: https://mirrors.aliyun.com/pypi/simple/