在M1芯片arm64的Mac上安装torch1.0.0和torchvision0.2.1可行吗?
我需要在搭载macOS-12.5.1(arm64架构)的Mac上,于Python 3.9的Conda环境中安装torch==1.0.0和torchvision==0.2.1。
尝试安装的过程及报错
使用pip安装
执行命令:
pip install torch==1.0.0 torchvision==0.2.1
得到报错:
ERROR: Could not find a version that met the torch1.0.0 requirement (from versions: 1.9.0, 1.10.0, 1.10.1, 1.10.2, 1.11.0, 1.12.0, 1.12.1)
ERROR: No matching distribution found for torch1.0.0
使用conda安装
执行命令:
conda install pytorch==1.0.0 torchvision==0.2.1 -c pytorch
得到报错:
Collect the package metadata (current_repodata.json): done
Resolution environment: failed with initial resolution frozen. Retry with a flexible solution.
Collect package metadata (repodata.json): done
Resolution environment: initial frozen resolution failed. Retry with a flexible solution.PackagesNotFoundError: The following packages are not available in the current channels:
- pytorch==1.0.0
Current channels:
- https://conda.anaconda.org/pytorch/osx-arm64
- https://conda.anaconda.org/pytorch/noarch
- https://repo.anaconda.com/pkgs/main/osx-arm64
- https://repo.anaconda.com/pkgs/main/noarch
- https://repo.anaconda.com/pkgs/r/osx-arm64
- https://repo.anaconda.com/pkgs/r/noarch
To search for other channels that may provide the conda package you are looking for, go to
you are looking for, go tohttps://anaconda.organd use the search bar at the top of the page.
疑问
我查询了Anaconda上的pytorch包文件,未找到适配arm64架构的torch==1.0.0版本。请问这个安装需求是否可行?
内容的提问来源于stack exchange,提问作者Tim

