在 Colab 中安装 isce2 时出现问题:“目标环境中缺少 cudatoolkit=12.2”

问题描述 投票:0回答:1

我运行了以下说明,但它不起作用!

!nvcc --version
**nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2023 NVIDIA Corporation
Built on Tue_Aug_15_22:02:13_PDT_2023
Cuda compilation tools, release 12.2, V12.2.140
Build cuda_12.2.r12.2/compiler.33191640_0**
!conda install -c conda-forge isce2
**Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.

PackagesNotFoundError: The following packages are missing from the target environment:
  - cudatoolkit=12.2**

我尝试使用

conda install -c "conda-forge/label/cf202003" isce2
安装,但也不起作用。

conda google-colaboratory pycuda conda-forge feature-tracking
1个回答
0
投票

Conda Forge 尚未构建
cudatoolkit=12.2

这在this

condacolab
Issue中报告。本质上,CUDA v12.2 的存在会触发 Conda(或
condacolab
?)注入
cudatoolkit 12.2.*
的引脚,但 Conda Forge 尚未构建
cudatoolkit=12.2
。这使得 Conda/Mamba 的任何变异操作暂时被破坏。最终,这个问题将得到解决(遵循问题)。

解决方法

与此同时,您可以简单地通过以下方式移除固定:

!sed -i '/cudatoolkit/d' /usr/local/conda-meta/pinned

然后 Conda 应该可以正常运行。

这是一个演示笔记本,我在其中安装

isce2
并在Python中加载后检查版本。

© www.soinside.com 2019 - 2024. All rights reserved.