【发布时间】:2021-09-04 20:53:58
【问题描述】:
我正在尝试在 google colab 上为 cudatoolkit=11.2 安装 conda,使用:
conda install pytorch cudatoolkit=11.2 -c pytorch -c nvidia
但是为什么它安装旧的pytorch=1.0.0 版本而不是>1.6?
如果我尝试强制安装pytorch=1.6,则会出现以下错误:
UnsatisfiableError: The following specifications were found to be incompatible with a past
explicit spec that is not an explicit spec in this operation (cudatoolkit):
- cudatoolkit=11.2
- pytorch=1.6 -> cudatoolkit[version='>=10.1,<10.2|>=10.2,<10.3|>=9.2,<9.3']
The following specifications were found to be incompatible with each other:
Output in format: Requested package -> Available versions
Package setuptools conflicts for:
setuptools
python=3.7 -> pip -> setuptools
conda[version='>=4.10.3'] -> setuptools[version='>=31.0.1']
wheel -> setuptools
pip -> setuptools
...
根据答案编辑:
当我尝试使用conda install -c conda-forge pytorch cudatoolkit=11.2 时,会出现以下错误。
PackagesNotFoundError: The following packages are not available from current channels:
- cudatoolkit=11.2
- __glibc[version='>=2.17,<3.0.a0']
Current channels:
- https://conda.anaconda.org/conda-forge/linux-64
- https://conda.anaconda.org/conda-forge/noarch
- https://repo.anaconda.com/pkgs/main/linux-64
- https://repo.anaconda.com/pkgs/main/noarch
- https://repo.anaconda.com/pkgs/free/linux-64
- https://repo.anaconda.com/pkgs/free/noarch
- https://repo.anaconda.com/pkgs/r/linux-64
- https://repo.anaconda.com/pkgs/r/noarch
- https://repo.anaconda.com/pkgs/pro/linux-64
- https://repo.anaconda.com/pkgs/pro/noarch
【问题讨论】:
-
This 可能有帮助吗?
-
您能否使用导致此错误的 Conda 设置创建一个公共 CoLab 笔记本?