我试图在conda下安装特定的PyTorch版本:
使用pip:
pip3 install pytorch==1.0.1
WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip.
Please see https://github.com/pypa/pip/issues/5599 for advice on fixing the underlying issue.
To avoid this problem you can invoke Python with '-m pip' instead of running pip directly.
Defaulting to user installation because normal site-packages is not writeable
ERROR: Could not find a version that satisfies the requirement pytorch==1.0.1 (from versions: 0.1.2, 1.0.2)
ERROR: No matching distribution found for pytorch==1.0.1使用Conda:
conda install pytorch==1.0.1
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
PackagesNotFoundError: The following packages are not available from current channels:
- pytorch==1.0.1
Current channels:
- https://repo.anaconda.com/pkgs/main/osx-64
- https://repo.anaconda.com/pkgs/main/noarch
- https://repo.anaconda.com/pkgs/r/osx-64
- https://repo.anaconda.com/pkgs/r/noarch
To search for alternate channels that may provide the conda package you're
looking for, navigate to
https://anaconda.org
and use the search bar at the top of the page.我能够在https://anaconda.org/soumith/pytorch下找到这个版本,但是有什么方法可以找到它并从控制台安装吗?
发布于 2020-09-25 11:25:32
您可以从官方Pytorch的Conda软件包下载/安装您喜欢的版本。您指定的链接是旧版本,现在不支持/更新退出一段时间了!
安装所需的版本如下:
conda install pytorch==1.0.1 torchvision==0.2.2 -c pytorch如果您正在寻找pip版本,您也可以从这里查看和访问所有版本。
只需做:
pip install torch===1.0.1 -f https://download.pytorch.org/whl/torch_stable.html您也可以在这里检查早期版本。
发布于 2021-06-10 18:44:06
您可以使用以下任何一种方法下载pytorch的早期版本:用于Linux/Windows特定操作系统
# CUDA 9.0
conda install pytorch==1.0.1 torchvision==0.2.2 cudatoolkit=9.0 -c pytorch
# CUDA 10.0
conda install pytorch==1.0.1 torchvision==0.2.2 cudatoolkit=10.0 -c pytorch
# CPU Only
conda install pytorch-cpu==1.0.1 torchvision-cpu==0.2.2 cpuonly -c pytorch 请访问此网站,了解如何在您的特定操作软件上安装pytorch版本。我希望这个答案是有帮助的。
https://stackoverflow.com/questions/64062637
复制相似问题